meteor-peerdb icon indicating copy to clipboard operation
meteor-peerdb copied to clipboard

Optimization: use query to limit documents for each instance

Open mitar opened this issue 11 years ago • 0 comments

Instead of observing all changes in all instances and then filtering them in the observe callback, we could provide already a query to the database to limit documents. For example, {_id: {$gte: 'a', $lt: 'c'} returns only documents where _id starts with a or b.

mitar avatar Aug 20 '14 00:08 mitar