I am currently building out custom forum software for my project, and I 
would like for a Forum to contain a List<Thread>, and a Thread to contain a 
List<Post>. However, doing so would require loading ALL the posts and 
threads into memory, which can be quite expensive.

Is there a way to 'stream' the objects into memory, loading them as they 
are required? I already have lazy loading in place, however it loads the 
entire List once only one object has been requested. I need a lazy load 
that only loads a portion of the required List into memory. 

Any tips for doing this? Thank you for reading.

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to