Re: Caching querysets

2007-05-15 Thread James Bennett
On 5/15/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > Will there be a branch for the SoC work? If a student wants a branch, I'm sure we'll provide one, but we won't force it on them; it should be up to each student/mentor pair to decide how best to manage their project (I'm mentoring one, for

Re: Caching querysets

2007-05-15 Thread Jeremy Dunck
On 5/14/07, Ben Ford <[EMAIL PROTECTED]> wrote: > How about caching the return of qs.iterator()? Would that work? > Ben I'm afraid not; that returns a generator which relies on an active cursor with the database; the behavior of trying to iterate that at an arbitrarily later time would depend

Re: Caching querysets

2007-05-15 Thread Jeremy Dunck
On 5/14/07, Gary Wilson <[EMAIL PROTECTED]> wrote: > > Jeremy Dunck wrote: > > Do people think it's worth doing? > > Have you seen the (accepted) object-level caching summer of code project? I hadn't. I think that's lovely functionality and a pretty bad name for it.My impression from

Re: Caching querysets

2007-05-14 Thread Ben Ford
How about caching the return of qs.iterator()? Would that work? Ben On 15/05/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > > I'd like to propose an addition to the low-level caching API that > fills the queryset _result_cache if the value being set (or contained > in a sequence or dictionary

Re: Caching querysets

2007-05-14 Thread Gary Wilson
Jeremy Dunck wrote: > Do people think it's worth doing? Have you seen the (accepted) object-level caching summer of code project? http://code.google.com/soc/django/appinfo.html?csaid=EFBF229544BAC5D0 --~--~-~--~~~---~--~~ You received this message because you

Caching querysets

2007-05-14 Thread Jeremy Dunck
I'd like to propose an addition to the low-level caching API that fills the queryset _result_cache if the value being set (or contained in a sequence or dictionary being set) is a queryset. Consider that before magic-removal, the ORM returned actual lists, so that something like this was