Skip to content

Commit 16e4551

Browse files
committed
Update README.md
1 parent e7b7a81 commit 16e4551

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ This project is a python connector to timbr using SQLAlchemy.
138138
query = "SHOW CONCEPTS"
139139
res_obj = conn.execute(query)
140140
results_headers = [(desc[0], desc[1]) for desc in res_obj.cursor.description]
141+
142+
# Optional Performance Tuning:
143+
# By default, Timbr fetches results in batches of 10,000 rows at a time.
144+
# You can increase this batch size for better performance with large datasets.
145+
# Note: The maximum batch size is controlled by your Timbr server's
146+
# "TIMBR_RESULTSET_MAX_FETCH_SIZE" configuration setting.
147+
res_obj.cursor._arraysize = 20000
148+
141149
results = res_obj.fetchall()
142150

143151
# Print the columns name

examples/example.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@
4444
query = "SHOW CONCEPTS"
4545
res_obj = conn.execute(query)
4646
results_headers = [(desc[0], desc[1]) for desc in res_obj.cursor.description]
47+
48+
# Optional Performance Tuning:
49+
# By default, Timbr fetches results in batches of 10,000 rows at a time.
50+
# You can increase this batch size for better performance with large datasets.
51+
# Note: The maximum batch size is controlled by your Timbr server's
52+
# "TIMBR_RESULTSET_MAX_FETCH_SIZE" configuration setting.
53+
res_obj.cursor._arraysize = 20000
54+
4755
results = res_obj.fetchall()
4856

4957
# Print the columns name

0 commit comments

Comments
 (0)