Re: full text search to_tsquery performance with ispell dictionary

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: full text search to_tsquery performance with ispell dictionary
Дата
Msg-id 24675.1305121705@sss.pgh.pa.us
обсуждение исходный текст
Ответ на full text search to_tsquery performance with ispell dictionary  (Stanislav Raskin <raskin@livn.de>)
Ответы Re: full text search to_tsquery performance with ispell dictionary
Список pgsql-general
Stanislav Raskin <raskin@livn.de> writes:
> The problem is, that if I open a new connection to the database and do
> something like this
> SELECT to_tsquery('german_de', 'abcd');
> it takes A LOT of time for the query to complete for the first time. About
> 1-1,5s. If I submit the same query for a second, third, fourth time and so
> on, it takes only some 10-20ms, which is what I would expect.

> It almost seems as if the dictionary is somehow analyzed or indexed and the
> results cached for each connection, which seems counter-intuitive to me.

Yes, loading a large dictionary is known to be a fairly expensive
operation.  There's been discussions about how to make it cheaper, but
nothing's been done yet.

            regards, tom lane

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: full text search to_tsquery performance with ispell dictionary
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Custom types and JDBC