From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | "David Olbersen" <DOlbersen(at)stbernard(dot)com>, <pgsql-sql(at)postgresql(dot)org> |
Cc: | <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: Help with LIKE |
Date: | 2003-03-20 21:55:32 |
Message-ID: | 200303201355.32718.josh@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance pgsql-sql |
David,
> I have a table with 8,628,633 rows that I'd LIKE to search (ha ha).
>
> I have a very simple query:
> SELECT * FROM tableA WHERE column1 LIKE '%something%';
That's what's called an "unanchored text search". That kind of query cannot
be indexed using a regular index.
What you need is called "Full Text Indexing" or "Full Text Search". Check
out two resources:
1) contrib/tsearch in your PostgreSQL source code;
2) OpenFTS (www.openfts.org)
--
-Josh Berkus
Aglio Database Solutions
San Francisco
From | Date | Subject | |
---|---|---|---|
Next Message | Florian Weimer | 2003-03-20 23:01:18 | Re: postgresql meltdown on PlanetMath.org |
Previous Message | David Olbersen | 2003-03-20 21:41:25 | Help with LIKE |
From | Date | Subject | |
---|---|---|---|
Next Message | Mario Alberto Soto Cordones | 2003-03-20 22:25:58 | FUNCTIONS PROBLEM |
Previous Message | David Olbersen | 2003-03-20 21:41:25 | Help with LIKE |