Re: [JBoss-user] Retrieving large lists

2003-03-19 Thread Pete Beck
On Tue, 2003-03-18 at 23:09, Philippe de M. Sevestre wrote: > How often does the data from which you populate your pull-down changes ? > > Usually this kind of information is relatively static so you should > consider caching the resulting bean collection in a session attribute (if > user specific

Re: [JBoss-user] Retrieving large lists

2003-03-18 Thread Philippe de M. Sevestre
How often does the data from which you populate your pull-down changes ? Usually this kind of information is relatively static so you should consider caching the resulting bean collection in a session attribute (if user specific) or even a context attribute. - Original Message - From: "

Re: [JBoss-user] Retrieving large lists

2003-03-18 Thread Felipe Oliveira
if you are using cmp 2 i suggest you to look at the read-ahead parameters on the jboss cmp doc. Pete Beck wrote: Hi, My application frequently needs to grab a large number of entities from the database to populate drop down lists. The current method I use, is to use a CMP finder which returns a

Re: [JBoss-user] Retrieving large lists

2003-03-18 Thread julien viet
on you finder use a read-ahead strategy on-find or on-load + a load-group that contains only the field you need to load. with latest xdoclet : * @jboss.query *signature="java.util.Collection findSomething()" *strategy="on-load" *page-size="10" *eager-load-group="lightweight"