Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve BleMonitorTask's cache #24

Open
sevenbitbyte opened this issue Feb 9, 2024 · 0 comments · May be fixed by #32
Open

improve BleMonitorTask's cache #24

sevenbitbyte opened this issue Feb 9, 2024 · 0 comments · May be fixed by #32

Comments

@sevenbitbyte
Copy link
Member

sevenbitbyte commented Feb 9, 2024

The cache works great, BUT we are currently clearing the entire cache at the start of a new scan. This causes a spike in db queries at the start of every scan. It also causes ble_obs to all cluster around the start of a scan aggrevating db latency.

Instead we should selectively crawl and clear the cache instead. This will help more equally distribute db access.

Should also track an accurate cache size, this essentially is the backlog of queries. Then track a completed queries count.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

1 participant