Re: Full text search with ORDER BY performance issue

Поиск
Список
Период
Сортировка
От PFC
Тема Re: Full text search with ORDER BY performance issue
Дата
Msg-id op.uxt11cs6cigqcu@soyouz
обсуждение исходный текст
Ответ на Re: Full text search with ORDER BY performance issue  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-performance
> If love is an uncommon word, there's no help for queries of this type
> being slow unless the GIN index can return the results in order.  But
> if love is a common word, then it would be faster to do an index scan
> by timestamp on the baserel and then treat comment_tsv @@
> plainto_tsquery('love') as a filter condition.  Is this a selectivity
> estimation bug?

    If you have really lots of documents to index (this seems the case)
perhaps you should consider Xapian. It is very easy to use (although, of
course, tsearch integrated in Postgres is much easier since you have
nothing to install), and it is *incredibly* fast.

    In my tests (2 years ago) with many gigabytes of stuff to search into,
differences became obvious when the data set is much bigger than RAM.
    - Postgres' fulltext was 10-100x faster than MySQL fulltext on searches
(lol) (and even a lot "more faster" on INSERTs...)
    - and Xapian was 10-100 times faster than Postgres' fulltext.

    (on a small table which fits in RAM, differences are small).

    Of course Xapian is not Postgres when you talk about update
concurrency..........
    (single writer => fulltext index updating background job is needed, a
simple Python script does the job)

В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Full text search with ORDER BY performance issue
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Full text search with ORDER BY performance issue