Home » RDBMS Server » Performance Tuning » SQL QUERY NOT USING BITMAP INDEX
|
|
|
|
|
|
|
|
Re: SQL QUERY NOT USING BITMAP INDEX [message #123712 is a reply to message #123398] |
Tue, 14 June 2005 09:30  |
smartin
Messages: 1803 Registered: March 2005 Location: Jacksonville, Florida
|
Senior Member |
|
|
When you select just the department_id, your index "is working" because all oracle has to do is read the index to get the value you requested in your select statement. But when you do select *, you are asking for something totally different. For each row, oracle has to go to the table data to retrieve the values for all the columns. So in that case it has to read both the index and the table data, which is much more costly than just reading the index. This is why it is generally better to only select the columns you need.
Did you gather statistics as I suggested above? What was the result after that?
|
|
|
Goto Forum:
Current Time: Thu May 01 09:01:43 CDT 2025
|