forked from crate/crate-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SQLAlchemy: Remove support for legacy
session.bulk_save_objects
> This method is a legacy feature as of the 2.0 series of SQLAlchemy. > For modern bulk INSERT and UPDATE, see the sections ORM Bulk INSERT > Statements and ORM Bulk UPDATE by Primary Key [at the SQLAlchemy docs] > > -- https://docs.sqlalchemy.org/orm/session_api.html#sqlalchemy.orm.Session.bulk_save_objects The new `insertmanyvalues` feature is the successor. Performance optimizations from `bulk_save()` have been made inherently part of `add_all()`. > A list of parameter dictionaries sent to the `Session.execute.params` > parameter, separate from the Insert object itself, will invoke bulk > INSERT mode for the statement, which essentially means the operation > will optimize as much as possible for many rows. -- https://docs.sqlalchemy.org/orm/queryguide/dml.html#orm-queryguide-bulk-insert -- sqlalchemy/sqlalchemy#6935 (comment) -- https://docs.sqlalchemy.org/core/connections.html#engine-insertmanyvalues
- Loading branch information
Showing
2 changed files
with
99 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters