Re: tsvector limitations

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: tsvector limitations
Дата
Msg-id 14751.1308194046@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: tsvector limitations  (Tim <elatllat@gmail.com>)
Список pgsql-admin
Tim <elatllat@gmail.com> writes:
> My limited testing indicates tsvector size has an approximately linear
> (binomial) correlation with "number of unique words", and "word count".

Yes, it would be linear in the number of unique words (assuming the
average word length stays constant).  It's not linear in word count,
because tsvector only keeps track of distinct word positions for the
first 16K words in the text.  So for large documents only the number of
unique words is really going to matter, and that grows *much* less than
linearly with document size for real-world documents.

            regards, tom lane

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

Предыдущее
От: Tim
Дата:
Сообщение: Re: tsvector limitations
Следующее
От: bakkiya
Дата:
Сообщение: could not open temporary statistics file "pg_stat_tmp/pgstat.tmp"