Re: Working with huge amount of data. RESULTS!

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Mario Lopez <mario(at)lar3d(dot)com>
Cc: depesz(at)depesz(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Working with huge amount of data. RESULTS!
Date: 2008-02-12 14:52:09
Message-ID: 20080212145209.GH14683@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2008-02-12 14:58:01 Re: Working with huge amount of data. RESULTS!
Previous Message Mark Cave-Ayland 2008-02-12 14:49:34 Re: Query using cursors using 100% CPU