Kurounin / Pagination

This package allows you to paginate the subscriptions over meteor's collections. It can be used in a Blaze template or in ReactJS.
MIT License
56 stars 22 forks source link

Large datasets (500K+) creating timeouts when reactive #75

Closed dariusj18 closed 6 years ago

dariusj18 commented 6 years ago

It appears the library publish-counts creates timeouts when the observers are added to the cursor.

This seems to be a known issue with the package

Publish-counts is designed for counting a small number of documents around an order of 100

and also counter to the purpose of this package to be suitable for large data sets.

You may want to consider using publish-performant-counts or add an additional option for realtime vs interval checks and switch which package is used based on that.

Kurounin commented 6 years ago

Thanks for the provided solution. I think the best solution would be to remove the current package and implement a similar solution to the one in the publish-performant-counts which would also support non-reactive publishing of counts.

Kurounin commented 6 years ago

Published new 1.1.0 version which implements an optimized count solution.