RE: Long Parse Time

From: Tanel Poder <>
Date: Wed, 6 May 2009 22:49:15 +0300
Message-ID: <EAFE9B2CE4AD40B7B7AA54BB57DA27F1_at_porgand>


With a 8-table join this probably isn't the root cause as you've got max 40k join order permutations - that's including all cartesian join orders, which aren't all evaluated by default, _optimizer_search_limit limits the max number of cartesian join orders to be evaluated (120 by default (factorial of 5 = 120)). On the other hand, both these parameters are worth checking. If parsing a 8-table join takes 10s of seconds, it's either a bug or someone has been playing with undocumented parameters.

Tanel Poder <>

From: [] On Behalf Of Allen, Brandon
Sent: 06 May 2009 21:44
To:; Subject: RE: Long Parse Time

One more thing I forgot to mention - did you check your _optimizer_max_permutations parameter to make sure somebody didn't increase it from the default? Another workaround if you're desperate (not generally recommended!) could be to reduce this parameter from the default of 2000.  



Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.

-- Received on Wed May 06 2009 - 14:49:15 CDT

Original text of this message