summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/psycopg2.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-01-18 00:35:00 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2019-01-18 00:35:30 -0500
commit5ea803494a8c8fe93474d33758ca64687b275e4d (patch)
tree5c04b64ef5972cc8d8fd23dcaa0366c47ab51a3b /lib/sqlalchemy/dialects/postgresql/psycopg2.py
parentd038f66b2aa31db8fec0883769f6a86bd0353d3b (diff)
downloadsqlalchemy-5ea803494a8c8fe93474d33758ca64687b275e4d.tar.gz
link the psycopg2 fast execution document to the Core tutorial executemany section
Fixes: #4109 Change-Id: I62fcb703b552db842be335c8f9257cc0e8c5cdd5
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/psycopg2.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
index 093900586..98e703fb5 100644
--- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py
+++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
@@ -120,7 +120,7 @@ Modern versions of psycopg2 include a feature known as
which have been shown in benchmarking to improve psycopg2's executemany()
performance with INSERTS by multiple orders of magnitude. SQLAlchemy
allows this extension to be used for all ``executemany()`` style calls
-invoked by an :class:`.Engine` when used with multiple parameter sets,
+invoked by an :class:`.Engine` when used with :ref:`multiple parameter sets <execute_multiple>`,
by adding the ``use_batch_mode`` flag to :func:`.create_engine`::
engine = create_engine(
@@ -130,6 +130,10 @@ by adding the ``use_batch_mode`` flag to :func:`.create_engine`::
Batch mode is considered to be **experimental** at this time, however may
be enabled by default in a future release.
+.. seealso::
+
+ :ref:`execute_multiple` - demonstrates how to use DBAPI ``executemany()``
+ with the :class:`.Connection` object.
.. versionadded:: 1.2.0