Force the optimizer to consider all join permutations [message #598374] |
Mon, 14 October 2013 07:21 |
Roachcoach
Messages: 1576 Registered: May 2010 Location: UK
|
Senior Member |
|
|
Hi all,
I'm looking to see if there is a way (fully expecting it to be an underscore, or two...) to force the optimizer to keep churning until all permutations are exhausted.
I'm aware that it, to paraphrase, cuts out when it's spent more time parsing than it would just running it based on it's estimates.
I've got some irritating problems with xml rewrite, xml indexes and access paths/cardinalities etc and I'm really needing the entire thing considered as a one off for debugging this. I've already cranked up the maximum permutations to the max but it's not enough, it shorts out after 5041 permutations (I'd set that to 80000 max).
I know you'd not want to do this in the real world but I cant get the damned thing to run the plan I want in a 10053 so I can see the values it has there. I know I can hint it, but I'm trying to ascertain why it's not even considering it in a "normal" parse. The whole plan is crap, actually, but with it being an xml index I'm limited on working out just why/what she's up to or why it is going wrong.
|
|
|
|
|
|
|
Re: Force the optimizer to consider all join permutations [message #598400 is a reply to message #598389] |
Mon, 14 October 2013 09:45 |
Roachcoach
Messages: 1576 Registered: May 2010 Location: UK
|
Senior Member |
|
|
Unfortunately even with _optimizer_search_limit set to 255, it still caps out at 5041.
I realise it's a bit off piste, but debugging xml indexes being unable to query the path table to ratify the values and its estimations it is using leaves me little recourse but massive 10053 traces.
Unless you folks know of a better way
|
|
|