posted 9 years ago
That bit of code tells us very little, especially since you do nothing with the row there.
I'll echo the "analyse a heap dump" as well as "do you really need all 300k rows".
I'll add a, what does the actual code look like (execution of the Statement through to the return of the data) for both this version and the original version that apparently handles all 300k rows.