Hi,
I'm new to Hibernate so I apologize in advance for any knowledge/vocab gaps.
I'm running a bunch of reports that require a rather large data set retrieved from the database. The first report retrieves ~500,000 items from the database, the next about 300k, the last about 300k. I'm setting all collections of objects to null immediately after use (prior to the next retrieval of data).
The first time I execute my Hibernate query, it takes about 40 sec; the next about 2-3 min, the following takes maybe 5 minutes, and then the last query (for the last report) takes a very long time, about 1-2 hrs. When I run this report by itself, it runs in about 5 minutes.
Does anyone know what the issue might be and how I can fix this?
Thank you in advance.
|