pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Patric Bechtel <bechtel@ipcon.de>
To: pgsql-jdbc@postgresql.org
Subject: Re: Query length restriction in v3 protocol?
Date: Thu, 11 May 2006 10:26:57 +0800
Message-ID: <4462A0F1.1070508@ipcon.de> (raw)
In-Reply-To: <1147278792.32369.86.camel@archimedes>
References: <4460B977.9070005@ipcon.de>
	<1147195173.32369.60.camel@archimedes>
	<44613C70.1040706@ipcon.de>
	<1147278792.32369.86.camel@archimedes>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Mark,

Mark Lewis schrieb am 11.05.2006 00:33:
> Patric,
> 
>> Hi Mark,
>> 
> The outer join improvements are already in CVS HEAD:
> 
> http://archives.postgresql.org/pgsql-performance/2006-02/msg00342.php
> 
> If you test with CVS HEAD could you please post your results back here?
> I know I'd be really interested in the results.
> 
from the mail: "
CVS HEAD can re-order left joins in common cases, but no existing
release will touch the ordering of outer joins at all.
"

That does not sound like there's anything done with the outer joins...?
I want to be sure there's a realistic chance of enhancing things
really.. maybe you have a link onto the CVS commit info?

So far, I even disabled the nestedloop on all 8.1 servers and increased
effective_cache_size to push the optimizer to do index lookups more
often in that case. So far, it helps... but all in all this wasn't
necessary in 8.0...
But nevertheless, the union mapping seems *far* better performance-wise
atm. Pity. No constraints. No unique id index. ;-(

> Ah, that's too bad.  The one place where we've needed to care about
> Hibernate's join order was at a place where our inheritance tree is
> flat, which explains why this trick worked for us.

Yep. That's why it works for you... We have the common superclass
pattern in our ORM, which I like most, and our inheritance trees are
partly very deep (8-10 levels is quite common) and make heavy use of
polymorphic relations and queries. Which is wonderful and elegant,
object-wise seen. Which is a great pita on the SQL side... :-\

- --
Mit freundlichen Gruessen / Regards
Patric Bechtel, IPCON Informationssysteme OHG
Kontakt: http://www.ipcon.de/kontakt.php
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: GnuPT 2.5.2

iD8DBQFEYqDwfGgGu8y7ypARAhLfAKCvG8bVSyy12R8jT9EInLVbgeMDpACeO3Yl
VjgWeaR5WMyI0gJ8tryfgWY=
=pHBZ
-----END PGP SIGNATURE-----



view thread (6+ messages)  latest in thread

Message-ID: <4462A0F1.1070508@ipcon.de>
Permalink:  ../4462A0F1.1070508@ipcon.de/
Also on:    postgresql.org/message-id/4462A0F1.1070508@ipcon.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: bechtel@ipcon.de
  Subject: Re: Query length restriction in v3 protocol?
  In-Reply-To: <4462A0F1.1070508@ipcon.de>
  References: <4460B977.9070005@ipcon.de> <1147195173.32369.60.camel@archimedes> <44613C70.1040706@ipcon.de> <1147278792.32369.86.camel@archimedes> <4462A0F1.1070508@ipcon.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox