summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/functions.py
diff options
context:
space:
mode:
authortsauerwein <tobias.sauerwein@camptocamp.com>2016-04-11 23:16:17 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2016-06-06 16:22:11 -0400
commit528509e1bc41c7fe4e51f7bb550db6343b29e841 (patch)
tree61fc75fa4357c8ca1b2e4923acfca1fdb79c30eb /lib/sqlalchemy/sql/functions.py
parent2860ae6c4927dbbca9316c81ce15cbbb7df49750 (diff)
downloadsqlalchemy-528509e1bc41c7fe4e51f7bb550db6343b29e841.tar.gz
Add "render_nulls" flag to bulk_insert as optional performance optimization
Currently, ``Session.bulk_insert_mappings`` omits NULL values which causes it to break up batches of inserts based on which batches contain NULL and which do not. By adding this flag, the same columns are rendered in the INSERT for all rows allowing them to be batched. The downside is that server-side defaults are omitted. Doctext-author: Mike Bayer <mike_mp@zzzcomputing.com> Change-Id: Iec5969304d4bdbf57290b200331bde02254aa3a5 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/243
Diffstat (limited to 'lib/sqlalchemy/sql/functions.py')
0 files changed, 0 insertions, 0 deletions