>
> I rather have a DB Query than a lazy exception. And not for every call!
> The hibernate cache is here for that.
If memory serves, the hibernate cache caches keys, not objects. So you'll
satisfy your keylist out of L2 cache and then have to do hard loads to flesh
out the objects. The Hibernate L2 cache is really only going to save you
time with queries which are expensive to run and return small result sets.
Fast queries will satisfy faster with a single hard query than:
Cache read;
Foreach(key in keyset)
Select * from foo where foo.key = key
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]