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

Caching for find() and findOne() #1

Open
vkarpov15 opened this issue Jul 7, 2022 · 0 comments
Open

Caching for find() and findOne() #1

vkarpov15 opened this issue Jul 7, 2022 · 0 comments

Comments

@vkarpov15
Copy link
Member

Right now we wrap write ops, but not find() or findOne(). We should also store the results of find() and findOne(), so restarts don't need to execute those queries.

Couple of caveats:

  1. find().cursor() is tricky
  2. As a general case of (1), find() can return a lot of documents. We shouldn't expect that the result of find() can be stored in a single Operation document
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant