[web-devel] Database.Persistent
Michael Snoyman
michael at snoyman.com
Thu May 5 13:18:23 CEST 2011
On Thu, May 5, 2011 at 1:28 PM, Felipe Almeida Lessa
<felipe.lessa at gmail.com> wrote:
> On Thu, May 5, 2011 at 2:20 AM, Jeremy Hughes <jedahu at gmail.com> wrote:
>> Is Database.Persistent lazy wrt reading fields? I need to iterate over
>> entities containing both small and large fields. I do not need to use
>> the large fields in this instance, and so would rather they were not
>> read from the database.
>
> IIRC, they are read strictly. I guess you should put them on a
> different entity.
That's correct. In fact, Persistent avoids any form of lazy I/O to
ensure that database connections are returned to the pool as soon as
possible (amongst other reasons).
Michael
More information about the web-devel
mailing list