diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-10-10 13:33:59 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-10-10 13:43:35 -0400 |
| commit | 4fbeec9d61b6bcbb40ef931b2aa2c82bd6bc8379 (patch) | |
| tree | 3339c443406557f1f71d920258565ab0566f7c59 /lib/sqlalchemy/sql | |
| parent | 2b2cdee7994d4af8dbd3dab28a5588c02e974fc8 (diff) | |
| download | sqlalchemy-4fbeec9d61b6bcbb40ef931b2aa2c82bd6bc8379.tar.gz | |
Add fast execution helper support.
Added a new flag ``use_batch_mode`` to the psycopg2 dialect. This flag
enables the use of psycopg2's ``psycopg2.extras.execute_batch``
extension when the :class:`.Engine` calls upon ``cursor.executemany()``.
This extension provides a critical performance increase by over an order of magnitude
when running INSERT statements in batch. The flag is False by default
as it is considered to be experimental for now.
Change-Id: Ib88d28bc792958d47109f644ff1d08c897db4ff7
Fixes: #4109
Diffstat (limited to 'lib/sqlalchemy/sql')
0 files changed, 0 insertions, 0 deletions
