The Channel logo

CBO - Help

Not to mention that the Cost Based Optimizer needs the table and index statistics to be valid. If your table has significant transaction traffic then the stats may be stale. If you haven't gathered stats yet, you should. Just because you have an index doesn't mean it's any good, is it the right kind of index? on the right field? What about other tables involved in the query? Oh, don't forget that using functions on fields in the where clause will tend to prevent Oracle from using indexes on those fields.

If the data that you want is scatter gun distributed through your 165 million rows, and you're retrieving a significant amount of data, even if the number of rows retrieved isn't a large % of the table, the total cost of reading the index(es) and the table reads may still be greater than the full table scan.

Self joins on the table would hurt too.

Techniques to consider;

partitioning

bitmap indexes

Forums

Forgotten password

Opinion

euros_channel_money

Tim Worstall

Time to take a sniff at the coffee, perhaps
joe_tucci_emc_channel

Chris Mellor

Will they have to drag him back like last time?
chain_relationship_channel

Features

cloud_accounting
Playing the SLA long game
channel_teaser_money_top
cloud computing Fight
Applications must work for the cloud to float
Paul Cormier, Red Hat
How a Unix killer crawled from the dot-com bust