Low priority batch insert

From: Jean Baro <jfbaro(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Low priority batch insert
Date: 2017-10-19 16:10:12
Message-ID: CA+fQeemNM8s9Y0_WKJ+rKStR9iePV3yfW+Rh6nhPUyGcJf3+hg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Michael Paquier 2017-10-19 22:54:16 Re: Low priority batch insert
Previous Message Laurenz Albe 2017-10-19 12:51:59 Re: memory allocation