-
Notifications
You must be signed in to change notification settings - Fork 479
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
ORM: What is the correct way to bulk add a lot of rows? #1066
Comments
No, that's not possible because bulk operations with custom types are currently not supported. |
OK, thanks for the help. So, my current implementation is the correct way(using the |
From the document, I see some example has extra functions: Lines 224 to 268 in 924d990
such as
So, do I need to adding the |
Yes, it is.
As far as I can see, your initial code looks fine already. |
Thanks, and sorry a bit late response.
OK, thanks. About the bulk operations for custom types, I see a pull request here: add support of bulk operations for ORM in ORACLE and SQLite backends #1053 Will this feature be discussed and merged in the future? |
Hi, I would like to build operation on a table by adding many rows to a table, here is a simple code which looks OK
The person class has such definition:
My question is: is my code the best way to bulk operation of adding several rows from a vector?
Is it possible to avoid the
for
loop, so that in the statement, I can directly add(use) the whole rows, such as:Any ideas?
Thanks.
The text was updated successfully, but these errors were encountered: