[Buildbot-devel] Generic implementation for paging and sort functionality in data api
Dustin J. Mitchell
djmitche at gmail.com
Wed Aug 1 22:45:24 UTC 2012
On Wed, Aug 1, 2012 at 1:10 PM, Pierre Tardy <tardyp at gmail.com> wrote:
> So question is where could we put a generic method somewhere in a db base
> class, that would decorate an sqlalchemy query with appropriate LIMIT and
> ORDERBY.
> I think this could work for most case, and of course will need to be tweaked
> for more complicated queries.
Actually, I'd prefer to keep the data API talking to the db API,
rather than invoking sqlalchemy directly.
If I had the time in the next few days, I'd take a shot at this
myself. I'm not likely to have much time, though :(
I think this is too much to ask of you, Naveen. Can we work around
this for the moment? Perhaps just stub out the range/order stuff so
that it always expects (and gets) the full list of objects in the same
order?
Dustin
More information about the devel
mailing list