Re: optimizing large query with IN (...)

Поиск
Список
Период
Сортировка
От Joseph Shraibman
Тема Re: optimizing large query with IN (...)
Дата
Msg-id 404FB5C9.3060803@selectacast.net
обсуждение исходный текст
Ответ на optimizing large query with IN (...)  ("Marcus Andree S. Magalhaes" <marcus.magalhaes@vlinfo.com.br>)
Список pgsql-performance
Marcus Andree S. Magalhaes wrote:
> Guys,
>
> I got a Java program to tune. It connects to a 7.4.1 postgresql server
> running Linux using JDBC.
>
> The program needs to update a counter on a somewhat large number of
> rows, about 1200 on a ~130k rows table. The query is something like
> the following:
>
> UPDATE table SET table.par = table.par + 1
> WHERE table.key IN ('value1', 'value2', ... , 'value1200' )
>

How often do you update this counter?  Each update requires adding a new
row to the table and invalidating the old one.  Then the old ones stick
around until the next vacuum.

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

Предыдущее
От: "Matthew T. O'Connor"
Дата:
Сообщение: Re: rapid degradation after postmaster restart
Следующее
От: Joseph Shraibman
Дата:
Сообщение: Re: Postgresql on SAN