-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Postgres supports something like:
INSERT INTO foo(a,b) VALUES (q,r), (s,t) ...
How can I do this in node-postgres
? Right now I'm using a transaction, and async.parallelLimit
for individual INSERT
s. But this seems rather inefficient, and it's as I need it for a reasonably high-volume log -- where every few seconds I need to insert quite a bit of data -- performance matters.
So I'm wondering if there's a better way. (And I happy to string concat my own query, but I don't an escaping function exposed)
Metadata
Metadata
Assignees
Labels
No labels