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

WIP first crack at _suppress_initial support #338

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

znewsham
Copy link

Would you be interested in a completed PR to allow _suppress_initial support?

The specific use case: I'm counting documents and need reactive updates to the counts, but I don't need to pull all the documents initially.

@theodorDiaconu
Copy link
Contributor

What does it solve? @znewsham

@znewsham
Copy link
Author

znewsham commented Mar 5, 2020

Using the native oplog __supress_initial allows developers to create an observer without first pulling in the entire dataset covered by the query.

For example, if I wanted to publish a count of documents, I don't need to pull in every document, I just need to run a count, then rerun the count when the dataset changes (or manually modify the count when added/removed events are seen).

Even though __supress_initial is a private property that was never documented, the lack of it feels like a regression and not having it makes some tasks more challenging

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

Successfully merging this pull request may close these issues.

2 participants