From: Ben <bench@silentmedia.com>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: very slow left join
Date: Fri, 16 May 2008 11:43:12 -0700 (PDT)
Message-ID: <Pine.LNX.4.64.0805161139080.3347@localhost.localdomain> (raw)
In-Reply-To: <dcc563d10805161127g6a1634eu9a3fed7607cc41d1@mail.gmail.com>
References: <Pine.LNX.4.64.0805131416080.3347@localhost.localdomain>
<dcc563d10805161109v575b3498w2f396af5af3673a2@mail.gmail.com>
<Pine.LNX.4.64.0805161113520.3347@localhost.localdomain>
<dcc563d10805161127g6a1634eu9a3fed7607cc41d1@mail.gmail.com>
On Fri, 16 May 2008, Scott Marlowe wrote:
> Well, I'm guessing that you aren't in locale=C and that the text
Correct, I am not. And my understanding is that by moving to the C locale,
I would loose utf8 validation, so I don't want to go there. Though, it's
news to me that I would get any kind of select performance boost with
locale=C. Why would it help?
> functions in your query aren't indexed. Try creating an index on them
> something like:
>
> create index abc_txtfield_func on mytable (substring(textfield,1,5));
>
> etc and see if that helps.
It does not. :(
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-performance@postgresql.org
Cc: bench@silentmedia.com, scott.marlowe@gmail.com
Subject: Re: very slow left join
In-Reply-To: <Pine.LNX.4.64.0805161139080.3347@localhost.localdomain>
References: <Pine.LNX.4.64.0805131416080.3347@localhost.localdomain> <dcc563d10805161109v575b3498w2f396af5af3673a2@mail.gmail.com> <Pine.LNX.4.64.0805161113520.3347@localhost.localdomain> <dcc563d10805161127g6a1634eu9a3fed7607cc41d1@mail.gmail.com> <Pine.LNX.4.64.0805161139080.3347@localhost.localdomain>
* 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