Skip to content

Commit 7650915

Browse files
committed
Add performance note to fetchall() docs
1 parent cf44700 commit 7650915

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • bigquery/google/cloud/bigquery/dbapi

bigquery/google/cloud/bigquery/dbapi/cursor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,10 @@ def fetchmany(self, size=None):
264264
def fetchall(self):
265265
"""Fetch all remaining results from the last ``execute*()`` call.
266266
267+
.. note::
268+
The ``arraysize`` attribute can affect the performance of this
269+
operation. Make sure to set it to appropriate batch size beforehand.
270+
267271
:rtype: List[tuple]
268272
:returns: A list of all the rows in the results.
269273
:raises: :class:`~google.cloud.bigquery.dbapi.InterfaceError`

0 commit comments

Comments
 (0)