let's discuss the need/implications with ro at the checkin meeting tomorrow.


On Mon, May 6, 2013 at 6:23 PM, Cory Zue <notifications@github.com> wrote:

> In corehq/apps/reports/commtrack/standard.py:
>
> > +                    'Stocked Out',
> > +                    'Understocked',
> > +                    'Adequate Stock',
> > +                    'Overstocked',
> > +                    'Non-reporting',
> > +                    'Insufficient Data',
> > +                ]))
> > +
> > +    @property
> > +    def product_data(self):
> > +        if getattr(self, 'prod_data', None) is None:
> > +            self.prod_data = list(self.get_prod_data())
> > +        return self.prod_data
> > +
> > +    def get_prod_data(self):
> > +        startkey = [self.domain, self.active_location._id if self.active_location else None]
>
> i think for the short term just to protect the server's memory we need to
> add a reasonable limit here and a note in the UI. i think can be as simple
> as passing limit to the couch view and then calling django messages to
> alert the user that they're only seeing partial data if we hit that limit?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dimagi/commcare-hq/pull/203/files#r4103096>
> .
>