Cost based SELECT/UPDATE

Поиск
Список
Период
Сортировка
От Leonid Safronie
Тема Cost based SELECT/UPDATE
Дата
Msg-id aab7b13e050907194555b75135@mail.gmail.com
обсуждение исходный текст
Ответы Re: Cost based SELECT/UPDATE  (Richard Huxton <dev@archonet.com>)
Re: Cost based SELECT/UPDATE  ("Jim C. Nasby" <jnasby@pervasive.com>)
Re: Cost based SELECT/UPDATE  (Jan Wieck <JanWieck@Yahoo.com>)
Список pgsql-general
Hi, ppl

Is there any way to do SELECTs with different priorities?

Once a month I need to do some complex reports on table with over 7
billion rows, which implies several nested SELECTS and grouping (query
runs over 20 minutes on P4/2.4GHz). Concurrently, there are over 50
processes updating tables in the same database, including table being
SELECTed to do monthly report. The issue is that response time for
these 50 processes is very important unlike for report generation, and
time spent by these processes while report running is unacceptable for
my production environment (response time grows from 1-3 seconds up to
1-2 minutes).

Is there any way to give different priorities to different
queries/transactions, as it's done for VACUUMing (vacuum_cost_*
options in config file)?

--
Leonid Safronie
DIAS-RIPE

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

Предыдущее
От: "pobox@verysmall.org"
Дата:
Сообщение: change column data type from smallint to integer
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: change column data type from smallint to integer