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 > Re: Optimizer's...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 6 Topic 4015 of 4424
Post > Topic >>

Re: Optimizer's issue

by matthew@[EMAIL PROTECTED] (Matthew Wakeling) Apr 24, 2008 at 11:50 AM

On Thu, 24 Apr 2008, Vlad Arkhipov wrote:
> It was written below in my first post:
> "These queries are part of big query and optimizer put them on the leaf
> of query tree, so rows miscount causes a real problem. "
> actual rows count for the first query is 294, estimate - 11; for the
> second -- 283 and 0. Postgres tries to use nested loops when it should
> use merge/hash join and vice versa.

The queries are taking less than three milliseconds. You only have three 
hundred rows in each table. The precise algorithm Postgres uses probably 
won't make much of a difference. Have you tried turning off the relevant 
join plans to see how long Postgres takes with your desired plan?

When you have millions of rows, the algorithm matters a lot more.

Matthew

-- 
Richards' Laws of Data Security:
 1. Don't buy a computer.
 2. If you must buy a computer, don't turn it on.

-- 
Sent via pgsql-performance mailing list (pgsql-performance@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
 




 6 Posts in Topic:
Optimizer's issue
arhipov@[EMAIL PROTECTED]  2008-04-24 10:14:54 
Re: Optimizer's issue
laurenz.albe@[EMAIL PROTE  2008-04-24 10:47:32 
Re: Optimizer's issue
arhipov@[EMAIL PROTECTED]  2008-04-24 18:47:37 
Re: Optimizer's issue
matthew@[EMAIL PROTECTED]  2008-04-24 11:50:24 
Re: Optimizer's issue
lists@[EMAIL PROTECTED]   2008-04-24 18:24:50 
Re: Optimizer's issue
arhipov@[EMAIL PROTECTED]  2008-04-28 10:51:38 

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:38:12 CST 2008.