Re: grep -f keyword data query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hiroyuki Sato <hiroysato(at)gmail(dot)com>
Cc: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>, pgsql-general(at)postgresql(dot)org
Subject: Re: grep -f keyword data query
Date: 2015-12-28 17:34:32
Message-ID: 18846.1451324072@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hiroyuki Sato <hiroysato(at)gmail(dot)com> writes:
> I re-created index with pg_trgm.
> Execution time is 210sec.
> Yes It is faster than btree index. But still slow.
> It is possible to improve this query speed?
> Should I use another query or idex?

Did you try a GIN index?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Molnar 2015-12-28 19:08:30 Regex help again (sorry, I am bad at these)
Previous Message Francisco Olarte 2015-12-28 12:51:41 Re: Options for complex materialized views sharing most of the same logic?