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 > count(*) taking much longer time than the column list

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-03, 05:22
buddy_amazing buddy_amazing is offline
Registered User
 
Join Date: Jan 2003
Posts: 16
count(*) taking much longer time than the column list

Hi,

I'm executing a query on DB2 EE V7.2, which has more than 2 joins involving 3 tables. Surprisingly, if I fetch the column list, its execution time is less while if I simply replace the column list by count(*) it is taking almost 10 times the previous query. Ideally it should be the other way round !!

Any pointers to this problem ???
__________________
Regards,
Buddy Amazing
IBM Certified DB2 DBA/AppDvlpr
Reply With Quote
  #2 (permalink)  
Old 10-09-03, 05:27
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Can we see the SQL statements and list of indexes?
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