]> git.ipfire.org Git - dbl.git/commit
lists: Mark domains as listed for faster search
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Feb 2026 10:50:53 +0000 (10:50 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Feb 2026 10:50:53 +0000 (10:50 +0000)
commit7eaa9f66938a4d71749b634b6435fbc8a37f068c
tree4d3156c77772a5d0f90d007044e06186c2d172e5
parent7018d29aa699d56fb4c8174be6ca69a14caa0eef
lists: Mark domains as listed for faster search

The query that is determining which domains are whitelisted has always
been very slow and there is no feasible way to accellerate it using
indexes, etc.

Therefore we will download all whitelisted domains and all potentially
blockable domains and perform the check in the Python application. That
way, we can later mark any delisted domains and fetch the entire list of
domains reasonably fast.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dbl/lists.py
src/dbl/util.py