Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQL - Does the order of the where clause have an effect on performance?

920906Jun 29 2012 — edited Jun 29 2012
Does the order of the where clause have an effect on performance? Or is there a way to force Oracle to use a certain where clause first?

I'm thinking of a condition where the first line will limit a large result set by 98%.
While the next 4 lines reduces the query by only 1%.
So I want to force the plan to use the first line(shrink results) before trying the other lines which have complex logic and are slower.
So is there a way to control it? Does oracle just have a mind of it's own?
Please advise.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 27 2012
Added on Jun 29 2012
8 comments
11,412 views