Open anupnitkkr opened 9 years ago
@anupnitkkr It seems that the project is deprecated - as it says at the readme: "Smart Collection is now retired & Meteor's Collection implementation has fixes for most of the performance bottlenecks."
So just use the default Meteor way for Collections.
@TimoRuetten : Currently I am using Default Meteor way . for performance . I was thinking that smart-collection can reduce long polling for pub/sub . If you have any solution , Can you tell me
@anupnitkkr SmartCollection will not boost the Collections in Meteor anymore. You have to remove the SmartCollection package because what SmartCollection has done to boost is Meteor doing now by itself.
Hey there!
I am using the lates version of smart-collections and want to test it.
I read the "documentation" of this package - maybe i need a sample - but in my case it does not work.
First what i did:
app/collections/collections.js
MyCollection = new SmartCollection('Test'); app/server/publishs.js
Meteor.publish('test', function(){ return MyCollection.find(); }); app/client/env.js
Meteor.subscribe('test'); Error output (shorted):
Exception from sub STxdGoBM293NARNGe TypeError: Object function (name) { // 10 I20140603-00:24:41.299(2)? var self = this; // 11 I20140603-00:24:41.300(2)? self.name = name; // 12 I20140603-00:24:41.300(2)? // _id -> document (also containing id) // 13 I20140603-00:24:41.300(2)? self._docs = new LocalCollection._IdMap; // 14 I20140603-00:24:41.301(2)? // 15 I20140603-00:24:41.302(2)? self._observeQueue = new Meteor._SynchronousQueue(); // 16 When I remove the subscribtion no error is shown. When i change my SmartCollection to Collection the but do not remove the subscribtion the error is also not shown.