pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jtp <john@akadine.com>
To: Nick Fankhauser <nickf@ontko.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Resources
Date: Fri, 11 Jan 2002 11:23:45 -0500 (EST)
Message-ID: <Pine.BSF.4.21.0201111115590.6416-100000@db.akadine.com> (raw)
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGMEOIECAA.nickf@ontko.com>



On Fri, 11 Jan 2002, Nick Fankhauser wrote:

> 
> > I don't beleive indexes will improve SELECT using LIKE.
> 
> I wondered about that too, so I did a test using a database I'm working
> with. The results indicate that it helps substantially- here is my terminal
> log file:

[snip]

an interesting (?) addendum to this.  Yes it does help substantially,
unless your wildcharacter has characters after it.

> staging=# explain select count(*) from actor where actor_full_name like
> 'A%';

try: explain select count(*) from actor where actor_full_name like '%a';

not too relevant for searches here, but occasionally it could be.  my
situation was having a merged last name + zipcode field, instead of having
two separately indexed fields.  Found out i couldn't do the job i wanted
that way.






view thread (18+ messages)  latest in thread

Message-ID: <Pine.BSF.4.21.0201111115590.6416-100000@db.akadine.com>
Permalink:  ../Pine.BSF.4.21.0201111115590.6416-100000@db.akadine.com/
Also on:    postgresql.org/message-id/Pine.BSF.4.21.0201111115590.6416-100000@db.akadine.com

 · 

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-sql@postgresql.org
  Cc: john@akadine.com, nickf@ontko.com
  Subject: Re: Resources
  In-Reply-To: <Pine.BSF.4.21.0201111115590.6416-100000@db.akadine.com>
  References: <NEBBLAAHGLEEPCGOBHDGMEOIECAA.nickf@ontko.com> <Pine.BSF.4.21.0201111115590.6416-100000@db.akadine.com>

* 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