openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: Using FetchPlan.setFetchBatchSize() feature leads to java.io.NotSerializableException
Date Mon, 12 Sep 2011 14:06:34 GMT
For giggles, try this...
- Set the FetchBatchSize to 2000
- Execute your query
- Once you get the result back, iterate over the entire list before you send
it out to your client.

On Mon, Sep 12, 2011 at 2:17 AM, M. Walter <marc.walter@sbb.ch> wrote:

> How do I set fetch size in JPA? I would like the cursor to read 2000 rows
> at
> once to speed up entity generation. Thanks for help!
>
> --
>
-- 
*Rick Curtis*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message