So, two options:
- every insert/delete, which we can do by setting a callback on the server
side
- synthetic collection, where we don't actually store it but do a
computation every time it is asked for.


On Fri, Nov 8, 2013 at 12:09 AM, Greg Terrono <notifications@github.com>wrote:

> In client/db_view.coffee:
>
> > @@ -1,5 +1,9 @@
> >  Template.db_view.helpers
> >    collections: -> Session.get('collections')
> > +  num_of_records: ->
> > +    Meteor.call 'get_number_of_items_in_collection', @name, (e, r) =>
> > +      $("##{@name}-count").text(r)
>
> Yeah, that could work. Would we then need to update them on every
> insert/delete? Or just check periodically?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/gterrono/meteor-admin-ui/pull/32/files#r7521064>
> .
>