Re: Large CASE-statement is pretty slow?

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Large CASE-statement is pretty slow?
Дата
Msg-id 87smga2fim.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Large CASE-statement is pretty slow?  (Arjen van der Meijden <acmmailing@vulcanus.its.tudelft.nl>)
Список pgsql-performance
Arjen van der Meijden <acmmailing@vulcanus.its.tudelft.nl> writes:

> Well, I have discarded this type of query as "too inefficient" and found a
> better way

Loading the mapping into a table with an index and doing an update using
"from" to do a join seems likely to end up being the most efficient method.
Postgres would probably not even bother with the index and do a hash join.


--
greg

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Large CASE-statement is pretty slow?
Следующее
От: Arjen van der Meijden
Дата:
Сообщение: Re: Large CASE-statement is pretty slow?