-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: document how to proper make batch inserts/updates #1388
Comments
👍 |
Any guidance on this? I'm thinking of this in comparison with the way JDBC's PostgreSQL driver works:
It seems that using Promise.all() might be the equivalent in node-pg. However:
I am planning to migrate a PostgreSQL JDBC microservice that uses 1000-batched inserts to achieve desired performance to node-pg, which is why I am trying to figure this out. |
@ariofrio Batched queries – pipelining – is broader than batch insert. pg doesn’t have pipelining yet. I think @brianc is working on it.
You should probably try to do it in fewer queries anyway, like #957 (comment). |
case it still helps: temp tables can achieve it - see this comment: #956 (comment) |
Hello,
Regularly there some questions about how to make batch inserts/updates and how to escape values safely.
Eg see :
#1400
#1387
#957
#880
I don't find any reference to this topic in the new doc site, but a user of this library can legitimately wonder how to handle this :
async.parallel
orPromise.all
) ?The text was updated successfully, but these errors were encountered: