[storm] referenceset and lazy attributes

Bernd Dorn bernd.dorn at lovelysystems.com
Mon Sep 3 16:08:04 BST 2007


On 03.09.2007, at 16:51, Gustavo Niemeyer wrote:

>
>> if we have somekind of grouping we would also have a solution for the
>> "fetch only primary-keys in referencesets" use-case. currently it
>> selects all fields for getting the result, without knowing if the
>> object is already cached.
>>
>> with only a lazy keyword this cannot be done.
>
> This will be tackled by another improvement, which actually won't
> require any changes in the ReferenceSet implementation nor in the
> caching mechanism.  The Store will be improved to always select
> only primary keys, and then select data for missing objects which
> are not yet cached.  Sum that and the caching implementation we're
> planning, we'll get a nice performance boost everywhere, and
> ReferenceSets will be happy for free.
>

ah ok, in this case +1 to the lazy keyword

> -- 
> Gustavo Niemeyer
> http://niemeyer.net




More information about the storm mailing list