Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

Issues with a DB2 connection

Thread view: 
Mike - 05 Nov 2007 12:34 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.