Re: order by primary key slowly
> It is obvious that the second option takes longer than the first query
> since it needs to read more than 5 times as many index entries ...
What confuses us users is that Explain suggests the opposite: it will read 5,465,723 rows for the quicker query, 1,000,010 for the slower one. Explain fails to explain that the PK index is slower to read.
> and in addition sort all the IDs.
Yes.
Subject
Views
Written By
Posted
2911
April 05, 2016 10:42PM
1317
April 06, 2016 04:35AM
1259
April 06, 2016 10:15AM
1284
April 06, 2016 11:23AM
1398
April 06, 2016 08:11PM
1318
April 06, 2016 10:35PM
1302
April 07, 2016 12:34AM
3823
April 07, 2016 07:21AM
Re: order by primary key slowly
1361
April 07, 2016 10:20AM
1257
April 07, 2016 11:26PM
1380
April 12, 2016 07:42PM
1229
April 06, 2016 08:57AM
1253
April 06, 2016 10:17AM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
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.