Closed dariusj18 closed 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.
Published new 1.1.0 version which implements an optimized count solution.
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
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.