-
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
aiopg.sa bulk inserts / executemany #112
Comments
Same question from my side as well. Any plans to add bulk insert functionality? |
AFAIK psycopg2 doesn't support executemany in asynchronous mode. |
It's a pity. It would of been nice to have this functionality supported due to the considerable speed improvements it brings. Thank you for the answer ! |
Thanks for the response! I figured there was some sort of technical reason why this functionality couldn't be made asynchronous. Totally get it. That being said, perhaps you could add a light wrapper around sqlalchemy's bulk insert functionality and note heavily in documentation that it's a synchronous operation. It's so much faster for large data inserts that I have code that uses aiopg throughout but then switches for this one case back to sqlalchemy. Not too terrible, but just feels weird. I don't know. Just a thought. Keep up the awesome work! Wish I knew enough programming to contribute more! |
If you need a synchronous DB call like bulk insert please use sync driver. |
Apologies in advance if this is the wrong forum for a question like this, but I was wondering if you have any plans to add bulk insert / executemany functionality for the SQLAlchemy wrapper in the future. My understanding (which may be wrong) is that this functionality is not in the current version. Just curious if it's something that will eventually be added? Thanks!
The text was updated successfully, but these errors were encountered: