Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Performance > Ramifications o...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 3831 of 4424
Post > Topic >>

Ramifications of turning off Nested Loops for slow queries

by chris.kratz@[EMAIL PROTECTED] (Chris Kratz) Mar 4, 2008 at 09:42 AM

Hello Everyone,

I had posted an issue previously that we've been unable to resolve.   
An early mis-estimation in one or more subqueries causes the remainder  
of the query to choose nested loops instead of a more efficient method  
and runs very slowly (CPU Bound).  I don't think there is any way to  
"suggest" to the planner it not do what it's doing, so we are starting  
to think about turning off nested loops entirely.

Here is the history so far:

http://archives.postgresql.org/pgsql-performance/2008-02/msg00205.php

At the suggestion of the list, we upgraded to 8.2.6 and are still  
experiencing the same problem.  I'm now installing 8.3 on my  
workstation  to see if it chooses a better plan, but it will take some  
time to get it compiled, a db loaded, etc.

We have a number of very long running re****ts that will run in seconds  
if nested loops are turned off.  The other alternative we are  
exploring is programmatically turning off nested loops just for the  
problematic re****ts.  But with the speedups we are seeing, others are  
getting gun shy about having them on at all.

So, I've now been asked to ping the list as to whether turning off  
nested loops system wide is a bad idea, and why or why not.

Any other thoughts or suggestions?

Thanks,

-Chris

--
Sent via pgsql-performance mailing list (pgsql-performance@[EMAIL PROTECTED]
)
To make changes to your Subscription:
http://mail.postgresql.org/mj/mj_wwwusr?domain=postgresql.org&extra=pgsql-performance
 




 5 Posts in Topic:
Ramifications of turning off Nested Loops for slow queries
chris.kratz@[EMAIL PROTEC  2008-03-04 09:42:49 
Re: Ramifications of turning off Nested Loops for
Kevin.Grittner@[EMAIL PRO  2008-03-04 10:18:43 
Re: Ramifications of turning off Nested Loops for slow queries
tgl@[EMAIL PROTECTED] (T  2008-03-04 12:19:17 
Re: Ramifications of turning off Nested Loops for slow queries
chris.kratz@[EMAIL PROTEC  2008-03-04 13:13:58 
Re: Ramifications of turning off Nested Loops for slow queries
chris.kratz@[EMAIL PROTEC  2008-03-04 13:16:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 7:43:02 CST 2008.