Skip to content

Commit f5f2a76

Browse files
author
James William Pye
committed
Add a note about how chunks produces builtins.tuple()'s.
1 parent 66a46d6 commit f5f2a76

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

postgresql/documentation/driver.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,11 @@ are seen as indexes and other objects are seen as keys::
10441044
>>> row["col0"]
10451045
't'
10461046

1047+
However, this extra functionality is not free. The cost of instantiating
1048+
`postgresql.types.Row` objects is quite measurable, so the `chunks()` execution
1049+
method will produce `builtins.tuple` objects for cases where performance is
1050+
critical.
1051+
10471052
.. note::
10481053
Attributes aren't used to provide access to values due to potential conflicts
10491054
with existing method and property names.

0 commit comments

Comments
 (0)