My problem is that NHibernate gets exponentially slow when fetching records from the database. I had a request to basically pull all the data from a very large database to be used in a report.
I figured, well since I can't get all the records in one shot because the recordset is so large, i thought try breaking it up. Basically I'm iterating through ranges of an index, ie. records id x to y, then y+1 to z, and so forth.
Each result set is about 10megs. The first 20 or so pulls takes less than a minute each, then on the next pull, it takes 10minutes, then 30minutes, and 1hr. I stopped the program there, didn't want to wait till the next pull will come. I ran the program again starting from the index where I left off, again, the first 20 or so pulls are really quick, then for some odd reason there is a major slowdown.
Any help would be greatly appreciated.