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 > Informix > Query is terribly slow

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-08, 07:36
Bharat Ram Bharat Ram is offline
Registered User
 
Join Date: Jul 2008
Posts: 2
Query is terribly slow

Hello,
There are about 11 million rows in a table that I'm using;
When I query this table on a particular column (which is an index -- duplicates
possible), the query seems to consume more than 8 minutes:

My query is as simple as this:

select count(*) from abc where abc_id = 7;

abc_id is an index on the table abc and can be duplicated;

Any inputs on how the performance could be improved..??

Thank You
Reply With Quote
  #2 (permalink)  
Old 08-25-08, 08:59
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
first, check what the optimizer are doing with SET EXPLAIN ON
(will generate a sqexplain.out file)
and check if update statistics are executed to this table (and this column).
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
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