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

Does subscription caching break pagination? #73

Open
evolross opened this issue Sep 27, 2022 · 0 comments
Open

Does subscription caching break pagination? #73

evolross opened this issue Sep 27, 2022 · 0 comments

Comments

@evolross
Copy link

Was just wondering if you use a subscription cache for paging through documents using a skip, limit, and sort, for example, as you page through the documents, those documents will get retained and build up in minimongo on the client.

You'll then need to update your client code to paginate through them correctly. Where with just using regular pub/sub you only have the current page of documents on the client, so you code can just return the currently published set of documents (which is really the current page).

If you update your client code to pass skip, limit, and sort to a minimongo query, in order to retrieve the correct page of documents from all the cached documents, what happens when the cached subscriptions expire in the middle of all this?

Seems like that would throw a wrench into everything... like sand shifting underneath your minimongo code.

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