File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments