Re: sequential scan unduly favored over text search gin index

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sushant Sinha <sushant354@xxxxxxxxx> wrote:
 
> I have a tsvector column docvector and a gin index on it
> docmeta1_docvector_idx
> 
> I have a simple query "select * from docmeta1 where docvector @@
> plainto_tsquery('english', 'free');" 
> 
> I find that the planner chooses a sequential scan of the table
> even when the index performs orders of magnitude.
 
Did you ANALYZE the table after loading the data and building the
index?
 
-Kevin

-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux