hi all,
is there a way to optimize a read only query?
i've already define mutable=false in my mapping
does
query.setLockMode(alias,NONE) or query.setLockMode(alias,READ) optimize the query? If yes, which is the best?
I know about cache... but i want to optimize the query, i've optimized the outer join and lazy features thanks to Gavin... but i want to know if there are more things we can do.
I remember an old VB app, we were able to use a READONLY recordset, and using it, the time of execution of the query was very short.
Thanks,
Anthony
|