Re: query performance optimization
Posted by:
Rick James
Date: January 22, 2016 06:29PM
Which of these is usually the most 'selective':
SSI.is_eligible_sc>0
(SAM.admin_user_id IS NULL OR SAM.admin_user_id='24577')
(CPEI.attribute_id=133)
We should try to make the most selective one show up first the EXPLAIN.
This look like a big typo:
GROUP BY SFO.entity_id AND SOIT.id_tags IN (2,3,8,10,11,12)
Øystein -- I used to say " OR clauses tend to prevent usage of indexes" for things like
(SAM.admin_user_id IS NULL OR SAM.admin_user_id='24577')
But then I discovered "ref_or_null". However, it does not seem to be used in his case. Can you elaborate?
Subject
Views
Written By
Posted
2356
January 18, 2016 04:49AM
954
January 19, 2016 02:30AM
911
January 19, 2016 02:50AM
1715
January 19, 2016 06:24AM
Re: query performance optimization
1046
January 22, 2016 06:29PM
1072
January 29, 2016 04:37AM
1372
January 22, 2016 06:18AM
946
January 27, 2016 06:56AM
921
January 22, 2016 01:08PM
1029
January 22, 2016 11:10PM
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.