-
Notifications
You must be signed in to change notification settings - Fork 6
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
How are you sure that data you are getting from the cache is not stale? #2
Comments
The cache is constantly being updated by the oplog. Here’s how Meteor’s real-time data works: Oplog Tailing > Merge Box > Pub/Sub All the data that is delivered via Pub/Sub is first processed in the MergeBox. Thus, any change to your user document is available on the server even before it makes it to the client. |
Yes, but oplog tailing is enabled for a document only if there is a query matching it. So what happens if there is no active query matching current user? |
How can a logged-in user not have a matching document? |
What I am saying is that this is true because client subscribes to the server using Personally, I would prefer the following approach: I would in I do not think that it is so costly to copy from merge box using |
I do not see it anywhere in the code. You are assuming there is an observe happening?
Isn't merge box populated only when you do observe and not just a regular MongoDB fetch?
I think this works for you because you have a default publish endpoint to publish current user to the client, which has an observe setup.
The text was updated successfully, but these errors were encountered: