Re: How to get around LIKE inefficiencies? - Mailing list pgsql-hackers

From The Hermit Hacker
Subject Re: How to get around LIKE inefficiencies?
Date
Msg-id Pine.BSF.4.21.0011052332540.928-100000@thelab.hub.org
Whole thread Raw
In response to Re: How to get around LIKE inefficiencies?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sun, 5 Nov 2000, Tom Lane wrote:

> The Hermit Hacker <scrappy@hub.org> writes:
> > On Mon, 6 Nov 2000, Philip Warner wrote:
> >> At 21:59 5/11/00 -0500, Tom Lane wrote:
> >>>> Looks like a great kluge to me ;-)
> >> 
> >> Hmph. I prefer to think of it as a 'user-defined optimizer hint'. ;-}
> 
> > Except, if we are telling it to get rid of using the index, may as well
> > get rid of it altogether, as updates/inserts would be slowed down by
> > having to update that too ...
> 
> Sure --- but do you have any other query types where the index *is*
> useful?  If so, Philip's idea will let you suppress use of the index
> for just this one kind of query.

Actually, it looks like they got a bit smart, and they search for the URL
in the url table based on the CRC32 value instead of text ...




pgsql-hackers by date:

Previous
From: Ron Chmara
Date:
Subject: Re: How to get around LIKE inefficiencies?
Next
From: The Hermit Hacker
Date:
Subject: Re: How to get around LIKE inefficiencies?