SQL tuning fixated on restructure
Hi,
have a query that sometimes pick a bad plan when value has high cardinality.
have run the tuning advisor but it only recommends a restructure when the issue is elsewhere.
version 12.2
query is
where column = <value> #this is the value that influences the plan
and Decode(blah)=decode(blah). # this is the part oracle recommends restructuring
why does the tuning advisor not get to the issue?
thanks