3 ms·
How is caching the count "cheating"? Grabbing the count for every request would be ridiculously expensive in any framework, not just Meteor.
by benaiah 13y ago
How is caching the count "cheating"? Grabbing the count for every request would be ridiculously expensive in any framework, not just Meteor.
- bjourne 13y agoOne count(*) query per request is not expensive at all. Suppose you cache the count and someone else adds rows to the collection. Your cached count is not getting updated and the whole reactivity concept breaks down since your app now thinks the row count is different from what it really is.