Re: Query speed

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: RFLM101(at)aol(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query speed
Date: 2003-01-04 14:23:26
Message-ID: m3wullhu3l.fsf@varsoon.wireboard.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

RFLM101(at)aol(dot)com writes:

> When I issue a select* from table where column = part,
> query speed is great, however, changing the where clause to "where column
> like 'part%'" the explain analyze shows the database doing a full table scan
> and not utilzing the index which slows the query speed.

Unless you're in the "C" locale, LIKE queries currently won't use an
index. This is apparently not easy to fix--if you search the list
archives you'll find some discussions on it.

-Doug

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Boget, Chris 2003-01-04 16:01:00 Constraints/On Delete...
Previous Message Lincoln Yeoh 2003-01-04 13:32:51 select for update with left outer joins?