-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Bulk insert support #142
Bulk insert support #142
Conversation
@abondar Can you please review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems great to me 👍
tortoise/backends/base/executor.py
Outdated
] | ||
for instance in instances | ||
] | ||
await self.db.execute_many(self.query, valueses) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really think valueses
is actual word 😄
Ma be values_lists
would be better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I asked my wife, and she said a correct usage would be values's
but valueses
is just irritatingly wrong. Another option could be values_of_values
, or shortened: vovs
🤣
I'll change it to values_lists
😄
Add support for Bulk Insert support.
Fixes #93
execute_many
for SQLiteexecute_many
for PostgreSQLexecute_many
for MySQL