Re: GiST index slower than seqscan

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: cgg007(at)yahoo(dot)com
Cc: postgresql listserv <pgsql-general(at)postgresql(dot)org>
Subject: Re: GiST index slower than seqscan
Date: 2006-04-21 00:00:59
Message-ID: 444820BB.9090007@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> In case you're unfamiliar with this particular horse, I'm using ltree to create
> a full text index on some <= 50 char long fields for a lookup table. The idea
> was to be able to tear through tons of data quickly finding case insensitive
> substring matches.
>

Why it is a ltree, not a tsearch?

> Index Cond: (search_vector ~ '*.6.6.9.3.4.4.*'::lquery)

That's the problem. Queries which begin with '*' will be slow enough...

Try to reduce SIGLENINT in tsearch2/gistidx.h up to 8 (do not forget reindex !!)
and try it....

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message mlartz@gmail.com 2006-04-21 01:02:17 Setup for large database
Previous Message Teodor Sigaev 2006-04-20 23:55:58 Re: full text search: the concept of a "word"