Select from a huge table takes too long
I have a table that has 1.2 million records. When I do a select using an alternate unique index it takes 15 to 30 seconds how ever using the primary index it takes less than a second. The two queries are as follows
Primary index is id which is an autoinc field.
cardnum is a long integer a secondary unique index
"Select id,cardnum from cards where cardnum=33333333333" slow
"Select id,cardnum from cards where id= 1270423" very fast
Running optimize does not fix the problem.
It it normal? What could be wrong.
Thanks
Subject
Views
Written By
Posted
Select from a huge table takes too long
2064
November 01, 2005 11:47AM
1203
November 01, 2005 01:01PM
1141
November 02, 2005 03:40AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.