mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
Speed up query log filtering #2893
Labels
No labels
P1: Critical
P2: High
P3: Medium
P4: Low
UI
bug
cannot reproduce
compatibility
dependencies
docker
documentation
duplicate
enhancement
enhancement
external libs
feature request
good first issue
help wanted
infrastructure
invalid
localization
needs investigation
performance
potential-duplicate
question
recurrent
research
snap
waiting for data
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AdGuardHome#2893
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Dubz on GitHub (Jul 11, 2021).
Running AdGuard via docker on a RasPi that's running Hypriot.
Querying DNS logs seems to take quite some time. As in, at least a few minutes, just to choose a preset filter. There's currently about half a million logs it's pulling, and only a few that are flagged as malicious/adult. Those are what I'm trying to pull essentially.
I think there should be some level of indexing for categories like this, since there is a much lower number of blocks overall. Mind you that I've only been running this for about a week or two.
Perhaps maybe increase log retention rules so blocks could be held longer than accepted? For instance, limit accepted domains to three days, while blocks could be thirty days. User customizable so we can decide based on our situation.
*I know different/better hardware would help some, but I don't think this should take that long to pull. I know I've had issues with querying PiHole on my gaming rig, experiencing similar results. I know that's a different platform entirely, but the overall performance is pretty similar with searching (so I'd imagine AdGuard would be slow as well).
@ainar-g commented on GitHub (Jul 12, 2021):
This is mostly a duplicate of #2290. The current implementation of the query log has major disadvantages, one of which is performance whenever a lot of data has to be scanned, and we won't be able to do anything about that until we change the storage engine behind it. I'll merge this issue into that one, if you don't mind.