pi-hole/advanced
DL6ER 10c2dad48a Improve gravity performance (#3100)
* Gravity performance improvements.

Signed-off-by: DL6ER <dl6er@dl6er.de>

* Do not move downloaded lists into migration_backup directory.

Signed-off-by: DL6ER <dl6er@dl6er.de>

* Do not (strictly) sort domains. Random-leaf access is faster than always-last-leaf access (on average).

Signed-off-by: DL6ER <dl6er@dl6er.de>

* Append instead of overwrite gravity_new collection list.

Signed-off-by: DL6ER <dl6er@dl6er.de>

* Rename table gravity_new to gravity_temp to clarify that this is only an intermediate table.

Signed-off-by: DL6ER <dl6er@dl6er.de>

* Add timers for each of the calls to compute intense parts. They are to be removed before this finally hits the release/v5.0 branch.

Signed-off-by: DL6ER <dl6er@dl6er.de>

* Fix legacy list files import. It currently doesn't work when the gravity database has already been updated to using the single domainlist table.

Signed-off-by: DL6ER <dl6er@dl6er.de>

* Simplify database_table_from_file(), remove all to this function for gravity lost downloads.

Signed-off-by: DL6ER <dl6er@dl6er.de>

* Update gravity.db.sql to version 10 to have newle created databases already reflect the most recent state.

Signed-off-by: DL6ER <dl6er@dl6er.de>

* Create second gravity database and swap them on success. This has a number of advantages such as instantaneous gravity updates (as seen from FTL) and always available gravity blocking. Furthermore, this saves disk space as the old database is removed on completion.

* Add timing output for the database swapping SQLite3 call.

Signed-off-by: DL6ER <dl6er@dl6er.de>

* Explicitly generate index as a separate process.

Signed-off-by: DL6ER <dl6er@dl6er.de>

* Remove time measurements.

Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-01-24 09:39:13 -08:00
..
bash-completion Add arpflush to help and bash autocompletion 2019-06-15 09:08:33 +02:00
GIFs Multiple gif files to choose from 2015-06-06 23:29:54 -05:00
Scripts Merge pull request #3089 from pi-hole/tweak/gravity_db_10 2020-01-24 09:23:34 -08:00
Templates Improve gravity performance (#3100) 2020-01-24 09:39:13 -08:00
01-pihole.conf Merge branch 'development' of https://github.com/Mograine/pi-hole into patch-1 2019-11-13 09:44:48 +01:00
blockingpage.css Match current style of Web Interface 2017-10-04 01:05:44 +11:00
cmdline.txt consoleblank=0 2016-02-20 01:15:14 -06:00
console-setup file to set lcd font size 2016-01-23 11:48:12 -06:00
dnsmasq.conf.original remove trailing whitespace dnsmasq.conf.original 2016-03-05 21:14:17 -08:00
index.php Remove dead code causing failure from the blocking page. 2020-01-19 21:39:49 +01:00
lighttpd.conf.debian Fix for 404 error when browsing to pi.hole (without /admin) 2019-08-20 11:29:17 -07:00
lighttpd.conf.fedora Fix 404 error when browsing to pi.hole (without /admin) (for fedora) 2019-08-20 11:29:20 -07:00