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 > Query data slow in case a few data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-25-10, 00:25
room102 room102 is offline
Registered User
 
Join Date: Mar 2010
Posts: 2
Query data slow in case a few data

Dear sir ,

I have big problem in DB9.5 workgroup

When I query a few data.The DB has response to slow
but I query large data The DB has response to fast

What is this problem and resolve it?

P.s. I have been create index and run stat.

Thk.
Reply With Quote
  #2 (permalink)  
Old 03-25-10, 08:40
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
try explain. if that does not help you then you should find answer on page 193.
Reply With Quote
  #3 (permalink)  
Old 03-25-10, 15:45
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Quote:
Originally Posted by dav1mo View Post
page 193.
page 193 of???
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 03-25-10, 16:05
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
of 300
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #5 (permalink)  
Old 03-25-10, 22:27
room102 room102 is offline
Registered User
 
Join Date: Mar 2010
Posts: 2
Quote:
Originally Posted by Cougar8000 View Post
of 300
What is URL ? I don't know it.
Please Tell me .

Thank you so much.
Reply With Quote
  #6 (permalink)  
Old 03-26-10, 10:03
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
Sorry about that, but Cougar and I could not help but be sarcastic, though it would have been better for Cougar to have given a tiny URL to point you to the movie 300.
You did not ask a real question that anyone could give a beneficial answer. If you would like help on a question you have to be more specific. The general things you should do when you have a slow query is to review the SQL. You run an explain of that SQL statement to see how it is accessing the database, is it using indexes or scanning every row, do you have a cartesian or partial cartesian product (you are not joining tables by the key or only by part of the key that links the tables), you are, maybe materializing a huge intermediate resultset, maybe your bufferpools have zero memory allocated to them, maybe you are having problems with your disk I/O rate, etc... You gave us no information to help you.
Maybe you need to look at some of the items I mentioned above, maybe the SQL being executed is just poorly written, give us the query, ddl of the tables being queried, some sample data and expected results.
Dave
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