-
Notifications
You must be signed in to change notification settings - Fork 36
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
Old documents are not resent? #41
Comments
I suggest you to read this article: https://meteorhacks.com/subscriptions-manager-is-here |
@arunoda I've been toying around with the idea of caching data for a very the problem I see with any off these solutions is that the app could become another solution: kind of like fast-render but with older data. don't cache possible features: could cache entire docs on the server and then run a cons with all solutions: more memory usage on client, can get show at 10^3
|
@arunoda sorry that was from my phone, few typos. I am interested in the "another solution" because imagine the following user situation:
Basically, we only need to tell the user about changes when they are actually looking at the content in question. In this use case, which is very common, for anyone with enough data to be paginated: Pros with your package:
Cons:
New Package Pros:
Cons:
As a side note, I am wondering if there's a way to sample the client's RAM and CPU and then determine the number to cache based on this number. |
There are two main reason we develop
You might be interested about the point 2. Subscribing and unsubscribing is one of costly operations in the server. So, with subs-manager we stopped that. So, that leads to over 50% reduction in the server load for some apps. I get your point about background updates. I think that's a different problem to address. Still we need to benchmark the server and client costs. |
what about the case with pagination, which leads to cases of either I am too curious cpu and ram taken when subscribing vs. cpu and ram taken I will check your site, I think you have a study on this iirc On Jun 2, 2015 2:43 AM, "Arunoda Susiripala" [email protected]
|
Hey @arunoda - First of all, I'm a big fan of your packages, I use a handful of them.
So I read this in your "Why?" section:
I ran some basic tests on the pub/sub by observing the DDP messages on the client. In the Tracker.autorun, No duplicate documents are sent. This is with a bare bones pub/sub in a Test collection. For example, If I sub all docs $near myReactiveCoordinates, the computation will be re-triggered when I move 10 feet, but the documents are mostly the same, no duplicate added messages are seen in the DDP logs.
Can you explain what you mean? I'm running meteor 1.1.0.2 and Meteor seems to be smart enough to not dupe the data.
The text was updated successfully, but these errors were encountered: