Interesting .. I could have sworn I set this to 100,000


On Mon, Mar 24, 2014 at 11:19 AM, Michael Meisinger <
notifications@github.com> wrote:

> In ion/services/sa/product/data_product_management_service.py:
>
> > +        # get the passed parameters. At least the data product id and start_time
> > +        # should be specified
> > +        if data_product_id_list == None or len(data_product_id_list) == 0:
> > +            raise  BadRequest("Please pass a valid data_product_id")
> > +
> > +        # Build query structure for fetching events for the data products passed
> > +        try:
> > +            dqb = DatastoreQueryBuilder(datastore=DataStore.DS_EVENTS, profile=DataStore.DS_PROFILE.EVENTS)
> > +
> > +            filter_origins = dqb.in_(DQ.EA_ORIGIN, *data_product_id_list)
> > +            filter_types = dqb.in_(DQ.ATT_TYPE, "ResourceModifiedEvent")
> > +            filter_mindate = dqb.gte(DQ.RA_TS_CREATED, since_timestamp)
> > +            where = dqb.and_(filter_origins, filter_types, filter_mindate)
> > +
> > +            order_by = dqb.order_by([["ts_created", "desc"]])  # Descending order by time
> > +            dqb.build_query(where=where, order_by=order_by, limit=10, skip=0, id_only=False)
>
> A limit of 10 may not get you where you want
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/ooici/coi-services/pull/1951/files#r10898060>
> .
>