]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Merge pull request #17 from iElectric/docs/wording_yield_per
authormike bayer <mike_mp@zzzcomputing.com>
Sun, 14 Jul 2013 16:58:43 +0000 (09:58 -0700)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 14 Jul 2013 17:00:05 +0000 (13:00 -0400)
wording about supported dialects for Query.yield_per

lib/sqlalchemy/orm/query.py

index 286dbf6b3e2410861cb019fc0106dfae20b4d649..2e849fba94cda2f864a85b0da7227ca43cef8d2e 100644 (file)
@@ -674,12 +674,12 @@ class Query(object):
         loading, the full result for all rows is fetched which generally
         defeats the purpose of :meth:`~sqlalchemy.orm.query.Query.yield_per`.
 
-        Also note that many DBAPIs do not "stream" results, pre-buffering
-        all rows before making them available, including mysql-python and
-        psycopg2.  :meth:`~sqlalchemy.orm.query.Query.yield_per` will also
-        set the ``stream_results`` execution
-        option to ``True``, which currently is only understood by psycopg2
-        and causes server side cursors to be used.
+        Also note that while :meth:`~sqlalchemy.orm.query.Query.yield_per`
+        will set the ``stream_results`` execution option to True, currently
+        this is only understood by :mod:`~sqlalchemy.dialects.postgresql.psycopg2` dialect
+        which will stream results using server side cursors instead of pre-buffer
+        all rows for this query. Other DBAPIs pre-buffer all rows before
+        making them available.
 
         """
         self._yield_per = count