0

As far as I understand, I "publish" named collection server-side, on the client side I "subscribe" to that collection and pass them to Template, where I work only with the data, provided by "published" collection.

Please comment, have I got it right, and what should I do if I have a big collection that I don't want to retreive at once?

1 Answer 1

1

That is correct. When using large collections you should add parameters to the publish and/or limit the amount of records being published.

Theres a good explanation about publish/subscribe on Meteorpedia

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks, got it, but how can I flush the data in my Meteor.Collection? It seems to add data to client's collection.
The data is synchronized automatically.
I mean I publish "clients" with 1 record and publish "clients-find" that returns 1 record, so in the template where I am iterating that collection it adds up that found record, so I have 2 records. How can I get around this? Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.