[PERFORM] Low priority batch insert

Поиск
Список
Период
Сортировка
От Jean Baro
Тема [PERFORM] Low priority batch insert
Дата
Msg-id CA+fQeemNM8s9Y0_WKJ+rKStR9iePV3yfW+Rh6nhPUyGcJf3+hg@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PERFORM] Low priority batch insert  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-performance
Hi there,

That's my first question in this mailing list! :)

Is it possible (node.js connecting to PG 9.6 on RDS) to set a lower priority to a connection so that that particular process (BATCH INSERT) would have a low impact on other running processes on PG, like live queries and single inserts/updates?

I would like the batch insert to complete as soon as possible, but at the same time keep individual queries and inserts running on maximum speed.

SINGLE SELECTS (HIGH PRIORITY)
SINGLE INSERTS/UPDATES (HIGH PRIORITY)
BATCH INSERT (LOW PRIORITY)
BATCH SELECT (LOW PRIORITY)



Is that a good idea? Is this feasible with Node.js + PG?

Thanks

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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: [PERFORM] memory allocation
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [PERFORM] Low priority batch insert