-
Notifications
You must be signed in to change notification settings - Fork 17
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
Investigate why favicon support can make querying history slow #11
Comments
I'm pretty sure it's not the copying that's the problem; when the problem manifests it does it even when the db files should be cached. Perhaps look into whether that caching is actually happening? |
Here's the query plan:
Compared to the previous query:
The subqueries use indexes so should be fast, however there's one subquery per matching row which could be a problem if there are a lot of matches. Also the outer query itself is not bound by a limit, is this on purpose? |
Thanks for this; it's pretty helpful. Sorry for the delay on looking further into this.
That was done in #10 (by you) so I'm not totally familiar with that query, but I don't think there's a limit on either on purpose. We grab them all from sqlite up front and then they are transformed into Alfred items as needed. Perhaps we should put a hard limit on that query, but I've not seemed to have a problem with the amount of results without a limit. |
I have a feeling it has to do with the
ATTACH
and complex query.This manifests as a ~1s delay in results, but not on my system.
At minimum, the band-aid is to make favicon optional. It'd be nice to know what the actual slowness is – copying the favicon db? ATTACH? the query itself? – and fix that instead.
The text was updated successfully, but these errors were encountered: