1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-03-06 11:16:21 +00:00

Revert "Improve gravity on systems with low memory" (#6039)

This commit is contained in:
Dominik 2025-03-03 11:01:45 +01:00 committed by GitHub
commit 7eef780fbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,8 +92,7 @@ gravity_build_tree() {
echo -ne " ${INFO} ${str}..." echo -ne " ${INFO} ${str}..."
# The index is intentionally not UNIQUE as poor quality adlists may contain domains more than once # The index is intentionally not UNIQUE as poor quality adlists may contain domains more than once
# We use temp_store = FILE to avoid memory exhaustion on large databases output=$({ pihole-FTL sqlite3 -ni "${gravityTEMPfile}" "CREATE INDEX idx_gravity ON gravity (domain, adlist_id);"; } 2>&1)
output=$({ pihole-FTL sqlite3 -ni "${gravityTEMPfile}" "PRAGMA temp_store = FILE; CREATE INDEX idx_gravity ON gravity (domain, adlist_id);"; } 2>&1)
status="$?" status="$?"
if [[ "${status}" -ne 0 ]]; then if [[ "${status}" -ne 0 ]]; then