Fwd: Re: [GENERAL] Combine multiple text search configuration

Поиск
Список
Период
Сортировка
От Johannes Graën
Тема Fwd: Re: [GENERAL] Combine multiple text search configuration
Дата
Msg-id 76712239-7181-5c03-5457-5b5ba2af679b@selfnet.de
обсуждение исходный текст
Ответы Re: [GENERAL] Combine multiple text search configuration  (Aleksandr Parfenov <a.parfenov@postgrespro.ru>)
Список pgsql-general
On 2017-11-07 08:27, hmidi slim wrote:
> Hi, 
> Thank for your proposition but when to use this query : 
> (to_tsvector('english', document) || to_tsvector('french', document)) @@
> (to_tsquery('english', query) || to_tsquery('french', query))
> I think that the performance decrease and not a good solution for big
> amount of data. Is it?

You have more lexems when you combine two languages, but not twice as
many as there will be some overlap. That means your index will also be
be bigger than a single language index. Anyhow I would expect this
variant to perform better than querying two single columns
simultaneously. Maybe one of the FTS developers could comment on this?


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

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

Предыдущее
От: Johannes Graën
Дата:
Сообщение: Re: [GENERAL] Combine multiple text search configuration
Следующее
От: Allan Kamau
Дата:
Сообщение: Re: [GENERAL] Migrating money column from MS SQL Server to Postgres