Re: update on a large table

Поиск
Список
Период
Сортировка
От Aaron Held
Тема Re: update on a large table
Дата
Msg-id 002101c242f9$a5f3bf60$4b00a8c0@metrony.com
обсуждение исходный текст
Ответ на update on a large table  ("Aaron Held" <aaron@metrony.com>)
Список pgsql-sql
Thanks Doug,

I was doing an UPATE on 100 million rows and I was updating an indexed column, it was also
the column that I was basing my seach on.

UPDATE "Calls" SET "GroupCode"='100 my street' WHERE "GroupCode"='' AND "Site"='000005'

GroupCode was Indexed.  I dropped the index and the query ran in under one hour.

Now I have been running Vaccum Analyze for three days......

Thanks,
-Aaron Held



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