dbTalk Databases Forums  

snowflaking

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss snowflaking in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Nabil Sayegh
 
Posts: n/a

Default Re: 7.4 dramatically slower than 7.3? - 04-06-2004 , 10:36 AM






Stephan Szabo wrote:

Quote:
One other possibility is that the planning is taking a really long time.
How long do explain (non-analyze) on the two systems take? And how many
joins are there precisely?
Yeah, that seems to be it.
It takes ~
(real) 3.776s on 7.4
(real) 0.082s on 7.3
measured with bash/time but shouldn't make a difference

So the plan is actually better but takes much longer to ... plan, right?

--
e-Trolley Sayegh & John, Nabil Sayegh
Tel.: 0700 etrolley /// 0700 38765539
Fax.: +49 69 8299381-8
PGP : http://www.e-trolley.de

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
  #12  
Old   
Stephan Szabo
 
Posts: n/a

Default Re: 7.4 dramatically slower than 7.3? - 04-06-2004 , 11:21 AM







On Tue, 6 Apr 2004, Nabil Sayegh wrote:

Quote:
Stephan Szabo wrote:

One other possibility is that the planning is taking a really long time.
How long do explain (non-analyze) on the two systems take? And how many
joins are there precisely?

Yeah, that seems to be it.
It takes ~
(real) 3.776s on 7.4
(real) 0.082s on 7.3
measured with bash/time but shouldn't make a difference

So the plan is actually better but takes much longer to ... plan, right?
Yes. You might want to see if lowering join_collapse_limit helps any, I'd
suggest trying 0 first and then incrementing it.


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
  #13  
Old   
Tom Lane
 
Posts: n/a

Default Re: 7.4 dramatically slower than 7.3? - 04-06-2004 , 02:12 PM



Nabil Sayegh <postgresql (AT) e-trolley (DOT) de> writes:
Quote:
Stephan Szabo wrote:
One other possibility is that the planning is taking a really long time.
How long do explain (non-analyze) on the two systems take? And how many
joins are there precisely?

Yeah, that seems to be it.
It takes ~
(real) 3.776s on 7.4
(real) 0.082s on 7.3
measured with bash/time but shouldn't make a difference

So the plan is actually better but takes much longer to ... plan, right?
Right. In 7.3 your use of JOIN syntax limited the planner's search for
good plans; in 7.4 it doesn't do so (by default anyway). You may care
to read http://www.postgresql.org/docs/7.4/s...cit-joins.html
and experiment with altering JOIN_COLLAPSE_LIMIT (and/or reordering the
joins in your query).

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
  #14  
Old   
Nabil Sayegh
 
Posts: n/a

Default Re: 7.4 dramatically slower than 7.3? - 04-07-2004 , 07:49 AM



Tom Lane wrote:
Quote:
Right. In 7.3 your use of JOIN syntax limited the planner's search for
good plans; in 7.4 it doesn't do so (by default anyway). You may care
to read http://www.postgresql.org/docs/7.4/s...cit-joins.html
and experiment with altering JOIN_COLLAPSE_LIMIT (and/or reordering the
joins in your query).
Thx all, I'll try that
--
e-Trolley Sayegh & John, Nabil Sayegh
Tel.: 0700 etrolley /// 0700 38765539
Fax.: +49 69 8299381-8
PGP : http://www.e-trolley.de

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.