Hi,
I am working against a DB2 database, with the JT400.jar. I am
currently experiencing problems when I try to
access recordsets that are > 200.000 records.
The connection seem to time out. I get no error message the connection
just freezes up.
Do you have any suggestions on what to do here...
BR
Mikal Skaaren
Ingo Menger - 05 Nov 2007 13:28 GMT
> Hi,
> I am working against a DB2 database, with the JT400.jar. I am
[quoted text clipped - 5 lines]
>
> Do you have any suggestions on what to do here...
I'd first make sure (I mean: absolutely sure) that the JDBC driver
doesn't try to hold the result set in memory.
How is memory usage/GC activity when "the connection freezes"?
Arne Vajhøj - 06 Nov 2007 01:13 GMT
> I am working against a DB2 database, with the JT400.jar. I am
> currently experiencing problems when I try to
[quoted text clipped - 4 lines]
>
> Do you have any suggestions on what to do here...
May we see a relevant code snippet ?
Arne
Roedy Green - 06 Nov 2007 01:52 GMT
>I am working against a DB2 database, with the JT400.jar. I am
>currently experiencing problems when I try to
>access recordsets that are > 200.000 records.
I could imagine a hairy query that can't produce any results without
collecting and sorting a huge number of records first. Perhaps the
query requires sequentially scanning the entire database.
I think what you want to do is find out what sort of strategy it is
using to execute the query. Perhaps then you will be able to prod it
along with an index, an aux table etc.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com