mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
Large stats.db causes slowdowns in DNS lookups #2753
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#2753
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 @PLight14 on GitHub (May 8, 2021).
Originally assigned to: @ainar-g on GitHub.
I have Adguard home running on a Synology NAS (HDD, no SSD). The switch from 105.2 to 106 caused dns lookup delays that did not appear in the lookup times in the query log. Websites would hang on DNS lookup for a few second. However, after clearing the history (deleting the 25mb stats.db) the delays were gone again.
This probably has something to do with a relatively slow insert (or equivalent) in the SQLite DB when it increases in size.
@ainar-g commented on GitHub (May 11, 2021):
Hello. The file isn't an SQLite database, unfortunately, but a BoltDB one. This is tangentially related to #2290, as we've been struggling to fine a performant, portable, reliable, and pure-Go database format. We have some experiments in the works, but unfortunately I cannot give any guarantees for now.
In the mean time, we'll probably need to be smarter about how we update statistics and its impact on the overall performance. Perhaps the DB's schema needs some rethinking as well.