Going through the code, I noticed that the setFetchSize
method for statements/preparedstatements was not being
used. For large/high traffic data, this is extremely
important to set as I am sure you all know.
Tonight was the first time I really have dug into the
code, so bear with me. I gave it a shot at adding the
hibernate.statement.fetch_size property to the
hibernate.properties file. It looked as if there was
one centralized place where all the query
preparedstatements were being created so I set the
fetchSize on the preparedstatement there (SessionImpl).
I have posted the patch up on the site....
|