Re: Another weird one with an UPDATE

From: Joe Conway <mail(at)joeconway(dot)com>
To: David Griffiths <dgriffiths(at)boats(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Another weird one with an UPDATE
Date: 2003-10-13 01:37:18
Message-ID: 3F8A01CE.2040003@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Stephan Szabo 2003-10-13 01:48:24 Re: Another weird one with an UPDATE
Previous Message David Griffiths 2003-10-13 01:33:54 Re: Another weird one with an UPDATE