-
Notifications
You must be signed in to change notification settings - Fork 255
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
aiomysql executemany is very slow to insert #984
Comments
same here, it's slow insert also one row as well.. |
One idea I recently tried was to combine several insert statements into one, executed using execute instead of executemany |
Can you post an example how you call multiple statements? |
This operation is only for insert statements
This is a bit more cumbersome, but much faster than using executemany directly |
Discussed in #983
Originally posted by RuoCJ April 27, 2024
I used aiomysql executemany to insert over 800 pieces of data, which took over thirty seconds, but pymysql only took over two seconds。
The text was updated successfully, but these errors were encountered: