If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > optomizing for speed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-08-04, 17:12
sde sde is offline
Registered User
 
Join Date: Apr 2004
Location: us.ca
Posts: 9
optomizing for speed

i'm struggling with speed here and i'm wondering how other java/db2 developers may work with this.

when working with multiple tables, joining seems to be very slow. however, looping through a result set and making other individual queries is not that much quicker.

what am i missing here, .. there must be a way to use multiple tables quickly and efficiently.

i have a customer table with nearly a million rows, and other relations with 50k+ rows.

sql indexes? logicals? i'm not an expert on the db2 side of things, but what could i look into ( or suggest a db admin look into ) to speed up my queries?

the db2 database is in an as/400 and i'm connecting using the jtopen tool with the as/400 toolbox.
Reply With Quote
  #2 (permalink)  
Old 09-08-04, 18:15
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Have you done RUNSTATS ???
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 09-08-04, 18:23
sde sde is offline
Registered User
 
Join Date: Apr 2004
Location: us.ca
Posts: 9
i think this is where my fustration starts .. i'm not a big as/400 buf, .. i have to communicate with the 400 administrator, .. who also equally doesn't know much about my side of things.

i have a login to the as/400, .. how does that work, and what does it tell me?
Reply With Quote
  #4 (permalink)  
Old 09-08-04, 18:27
sde sde is offline
Registered User
 
Join Date: Apr 2004
Location: us.ca
Posts: 9
i just tried it
Code:
RUNSTATS ON TABLE MYTABLE
Quote:
token RUNSTATS was not valid
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On