Hello,
We would like to optimize our database query's by only querying for objects that aren't in the cache. So given a list of primary keys, we only want to execute a query on the objects that don't exist in the cache. This way we know that we can execute Session.get() knowing that we will not generate any SQL. It's just an optimization we would like to do to limit the SQL that the server sends on each request.
If there is a better to do this, I would be interested in knowing that as well.
Thanks in advance,
Rich C
|