Re: update ... from where id in (..) question

Поиск
Список
Период
Сортировка
От Gregory Wood
Тема Re: update ... from where id in (..) question
Дата
Msg-id 035801c0d33e$d7936c90$7889ffcc@comstock.com
обсуждение исходный текст
Ответ на update ... from where id in (..) question  (Feite Brekeveld <feite.brekeveld@osiris-it.nl>)
Список pgsql-general
> I have a table with approx.  2mln records.
>
> There were a few for which I had to update statusfield, so I did:
>
>         update table set statusflag = 'U' where id in ('id10', 'id20',
> 'id30');
>
> this took so long that I cancelled it, and used separate
>
>         update table set statusflag = 'U' where id = 'id10';
>
> statements, which were executed in a fraction of a second.
>
>
> Has someone an explanation for this ?

http://www.postgresql.org/docs/faq-english.html#4.23


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

Предыдущее
От: Mike Mascari
Дата:
Сообщение: RE: update ... from where id in (..) question
Следующее
От: Aaron Brashears
Дата:
Сообщение: big pg 6.5 and 7.1 problem in simple application