persistence@glassfish.java.net

Re: setFirstResult/setMaxResults in memory?

From: Craig L Russell <Craig.Russell_at_Sun.COM>
Date: Thu, 21 Dec 2006 09:39:49 -0800

Hi Tom,

I'm afraid I don't understand your response. Is this an action item
on your side?

Thanks,

Craig

On Dec 20, 2006, at 6:39 AM, Tom Ware wrote:

> Hi Marina,
>
> Thanks for passing this on.
>
> I replied.
>
> -Tom
>
> Marina Vatkina wrote:
>
>> Resending with a jar attachment.
>>
>> -marina
>>
>> Marina Vatkina wrote:
>>
>>> Tom,
>>>
>>> Does TLE perform setFirstResult/setMaxResults operations in
>>> memory instead of pushing it to the database? My slightly
>>> modified example from the entity-persistence web page (attached)
>>> shows that while the result is correct, the query reads the
>>> whole table into memory (verified via log level FINE).
>>>
>>> Is it a bug?
>>>
>>> thanks,
>>> -marina
>>>
>
> --
> Tom Ware
> Principal Software Engineer
> Oracle Canada Inc.
>
> Direct: (613) 783-4598
> Email: tom.ware_at_oracle.com

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell_at_sun.com
P.S. A good JDO? O, Gasp!