Closed DL6ER closed 1 month ago
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:
https://discourse.pi-hole.net/t/discrepancy-between-pi-hole-api-client-query-count-and-logs/70065/17
Confirmed working by letting this run locally for 2 days by now and independent confirmation by OP on Discourse:
https://discourse.pi-hole.net/t/discrepancy-between-pi-hole-api-client-query-count-and-logs/70065/19
What does this implement/fix?
Improve query storing algorithm to better cope with bursts of queries of arbitrary size and frequency. See related Discourse bug chasing for further details.
This is overall an improvement as the new strategy guarantees that no queries can be lost on one hand and drastically reduces the workload on the other hand by using persistent prepared statements instead of compiling them once per second.
Related issue or feature (if applicable): N/A
Pull request in docs with documentation (if applicable): N/A
By submitting this pull request, I confirm the following:
git rebase
)Checklist:
developmental
branch.