Re: Another weird one with an UPDATE

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Another weird one with an UPDATE
Дата
Msg-id 3F8A01CE.2040003@joeconway.com
обсуждение исходный текст
Ответ на Re: Another weird one with an UPDATE  (David Griffiths <dgriffiths@boats.com>)
Список pgsql-performance
David Griffiths wrote:
>>I think you want something like:
>>UPDATE user_account SET last_name = 'abc'
>> WHERE EXISTS (SELECT 1 FROM commercial_entity ce, commercial_service cs
>> WHERE user_account.user_account_id = ce.user_account_id AND
>> ce.commercial_entity_id = cs.commercial_entity_id);
>
> Unfort, this is still taking a long time.
> -------
>  Seq Scan on user_account  (cost=0.00..748990.51 rows=36242 width=716)

Do you have an index on user_account.user_account_id?

Joe


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

Предыдущее
От: David Griffiths
Дата:
Сообщение: Re: Another weird one with an UPDATE
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Another weird one with an UPDATE