i will just try 250 and see how that goes.
i looked around but didnt see any guidelines.
maybe i will just try and adjust if needed.
thanks,
jim
> i have records stored in a vector. they are loaded into a jface table
> viewer that has an image in the table. i want to make it so my
[quoted text clipped - 10 lines]
>
> i am using hibernates pagination feature.
The number of records you should cache will depend on how much memory
you want your application to use. If each row contains an image, you
could end up using quite a lot of memory to cache 1000 rows.
On the other hand, loading 1000 images from a database (as blobs,
presumably?) will also take time, and your UI needs to remain responsive.
One solution would be to have a separate thread whose job is to manage
the JDBC connection and fetch data to keep the cache up to date.
However, I don't use Hibernate so I don't know whether it offers you
that level of control.
David Harper
Cambridge, England
3rdshiftcoder - 28 Jan 2007 19:11 GMT
thanks david.
i like your idea about the thread if it becomes unresponsive.
i will try less records and a separate thread if needed.
thanks for repying,
jim
> The number of records you should cache will depend on how much memory you
> want your application to use. If each row contains an image, you could
[quoted text clipped - 11 lines]
> David Harper
> Cambridge, England