-
Notifications
You must be signed in to change notification settings - Fork 157
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
idea as fixed bulk update/insert and mogrify #550
Comments
GitMate.io thinks possibly related issues are #112 (aiopg.sa bulk inserts / executemany), #546 (Bulk update values with SQLAlchemy), #87 (Returning after update), and #352 (Should cursor.mogrify be coroutine?). |
I propose to discuss @jettify @asvetlov @thehesiod @webknjaz |
I think |
leave this up to jettify/asvetlov :] |
I am ready to wait a week more. but after I collect the new release candidate, removing async before this function |
preparing release |
started implementing #632 |
Hey all.
We can implement a bulk insert, but we need to decide what to do with mogrify.
Im test
psycopg2.extras.execute_batch
in asynchronous style and the result impressed me.we replace "executemany" with "mogrify and execute"
Recently, the argument was
use_batch_mode
added to sqlalchemy. psycopg/psycopg2#491 (comment)psycopg documentation: http://initd.org/psycopg/docs/extras.html#psycopg2.extras.execute_batch
psycopg implementation: https://github.com/psycopg/psycopg2/blob/master/lib/extras.py#L1185
significant speedup: psycopg/psycopg2#491 (comment)
This allows us to make mass requests using
use_batch_mode=True
inEngine
and will resolve of issues: #112, #546.however,
cursor.mogrify
is an asynchronous function.although is doesn't need #186, #352
I propose to change this behavior in version 1.0.0 without backward compatibility.
The text was updated successfully, but these errors were encountered: