Re: Working with huge amount of data. RESULTS! - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Working with huge amount of data. RESULTS!
Date
Msg-id 20080212145209.GH14683@alvh.no-ip.org
Whole thread Raw
In response to Re: Working with huge amount of data. RESULTS!  (Mario Lopez <mario@lar3d.com>)
List pgsql-general
Mario Lopez wrote:

> The problem is still with the LIKE '%keyword%', my problem is that I am
> not searching for Words in a dictionary fashion, suppose my "data" is
> random garbage, that it has common consecutive bytes. How could I
> generate a dictionary from this random garbage to make it easier for
> indexing?

Using trigrams perhaps?  Try checking whether pg_trgm fits your needs.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Mark Cave-Ayland
Date:
Subject: Re: Query using cursors using 100% CPU
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: Working with huge amount of data. RESULTS!