pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jackson, DeJuan <djackson@cpsgroup.com>
To: Frank Morton <fmorton@base2inc.com>
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] Faster LIKE
Date: Wed, 20 Jan 1999 10:17:21 -0600
Message-ID: <F10BB1FAF801D111829B0060971D839F5F80BC@cpsmail> (raw)

> I have an image database with keywords assigned to each record
> in the field "keywords" and often do:
> 
> select * from images where keywords like 'dog';
> 
> which works great with a small database, but slows down quickly
> with a large database.
> 
> since the "keywords" field can have multiple entries, such as
> 'dog mammals fuzzy small' I was considering creating a separate
> keywords table where each word was an individual row and could
> therefore be indexed and fast.
> 
> however, in the above example, I would like to match on "mammal"
> also (i.e., no "s" on the end) or any substring within the field, so
> the separate table does not do it either.
> 
> This has to be a common thing. Are there any good solutions or
> research out there to solve this problem? Thanks.

See: pgsql/contrib/fulltextindex
Hope this helps,
	-DEJ



view thread (2+ messages)

Message-ID: <F10BB1FAF801D111829B0060971D839F5F80BC@cpsmail>
Permalink:  ../F10BB1FAF801D111829B0060971D839F5F80BC@cpsmail/
Also on:    postgresql.org/message-id/F10BB1FAF801D111829B0060971D839F5F80BC@cpsmail

 · 

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: djackson@cpsgroup.com, fmorton@base2inc.com
  Subject: Re: [SQL] Faster LIKE
  In-Reply-To: <F10BB1FAF801D111829B0060971D839F5F80BC@cpsmail>
  References: <F10BB1FAF801D111829B0060971D839F5F80BC@cpsmail>

* 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