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

query cache #65

Open
tantaman opened this issue Aug 26, 2022 · 2 comments
Open

query cache #65

tantaman opened this issue Aug 26, 2022 · 2 comments

Comments

@tantaman
Copy link
Collaborator

We should be caching query results and/or resolving queries as much as possible from the app-cache.

This'll keep all things instant post pre-fetch. This is really only a problem for the browser where non-trivial queries against sqlite backed by indexeddb can take ~5ms rather than microseconds.

~5ms doesn't seem so bad but if the user has 4 complex queries to resolve before updating the UI it'll be above our ideal threshold of 16ms.

@tantaman
Copy link
Collaborator Author

#46 is another related improvement by enabling parallel reads.

@tantaman
Copy link
Collaborator Author

In node / ios / android / desktop this is a non-issue as queries resolve in microseconds.

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

No branches or pull requests

1 participant