Revert "Improve gravity on systems with low memory"

This commit is contained in:
Dominik 2025-03-03 09:00:17 +01:00 committed by GitHub
parent f207385269
commit df814ece91
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}..."
# 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}" "PRAGMA temp_store = FILE; CREATE INDEX idx_gravity ON gravity (domain, adlist_id);"; } 2>&1)
output=$({ pihole-FTL sqlite3 -ni "${gravityTEMPfile}" "CREATE INDEX idx_gravity ON gravity (domain, adlist_id);"; } 2>&1)
status="$?"
if [[ "${status}" -ne 0 ]]; then