@@ -75,6 +75,7 @@ def indexed(
7575 filter_by : Optional [Union [Filter , list [Filter ]]] = None ,
7676 on_execution_submitted : Optional [Callable [[Execution ], None ]] = None ,
7777 is_cancellable : bool = False ,
78+ result_page_len : Optional [int ] = None ,
7879 ) -> pandas .DataFrame :
7980 """
8081 Creates a data frame indexed by values of the label. The data frame columns will be created from either
@@ -90,6 +91,8 @@ def indexed(
9091 on_execution_submitted (Optional[Callable[[Execution], None]]): Callback to call when the execution was
9192 submitted to the backend.
9293 is_cancellable (bool, optional): Whether the execution should be cancelled when the connection is interrupted.
94+ result_page_len (Optional[int]): Optional page size for result pagination.
95+ Defaults to 1000. Larger values can improve performance for large result sets.
9396
9497 Returns:
9598 pandas.DataFrame: A DataFrame instance.
@@ -102,6 +105,7 @@ def indexed(
102105 filter_by = filter_by ,
103106 on_execution_submitted = on_execution_submitted ,
104107 is_cancellable = is_cancellable ,
108+ result_page_len = result_page_len ,
105109 )
106110
107111 _idx = make_pandas_index (index )
@@ -114,6 +118,7 @@ def not_indexed(
114118 filter_by : Optional [Union [Filter , list [Filter ]]] = None ,
115119 on_execution_submitted : Optional [Callable [[Execution ], None ]] = None ,
116120 is_cancellable : bool = False ,
121+ result_page_len : Optional [int ] = None ,
117122 ) -> pandas .DataFrame :
118123 """
119124 Creates a data frame with columns created from metrics and or labels.
@@ -125,6 +130,8 @@ def not_indexed(
125130 on_execution_submitted (Optional[Callable[[Execution], None]]): Callback to call when the execution was
126131 submitted to the backend.
127132 is_cancellable (bool, optional): Whether the execution should be cancelled when the connection is interrupted.
133+ result_page_len (Optional[int]): Optional page size for result pagination.
134+ Defaults to 1000. Larger values can improve performance for large result sets.
128135
129136 Returns:
130137 pandas.DataFrame: A DataFrame instance.
@@ -137,6 +144,7 @@ def not_indexed(
137144 filter_by = filter_by ,
138145 on_execution_submitted = on_execution_submitted ,
139146 is_cancellable = is_cancellable ,
147+ result_page_len = result_page_len ,
140148 )
141149
142150 return pandas .DataFrame (data = data )
@@ -148,6 +156,7 @@ def for_items(
148156 auto_index : bool = True ,
149157 on_execution_submitted : Optional [Callable [[Execution ], None ]] = None ,
150158 is_cancellable : bool = False ,
159+ result_page_len : Optional [int ] = None ,
151160 ) -> pandas .DataFrame :
152161 """
153162 Creates a data frame for named items. This is a convenience method that will create DataFrame with or
@@ -162,6 +171,8 @@ def for_items(
162171 on_execution_submitted (Optional[Callable[[Execution], None]]): Callback to call when the execution was
163172 submitted to the backend.
164173 is_cancellable (bool, optional): Whether the execution should be cancelled when the connection is interrupted.
174+ result_page_len (Optional[int]): Optional page size for result pagination.
175+ Defaults to 1000. Larger values can improve performance for large result sets.
165176
166177 Returns:
167178 pandas.DataFrame: A DataFrame instance.
@@ -184,14 +195,19 @@ def for_items(
184195 if not auto_index or not has_measures or not has_attributes :
185196 columns : ColumnsDef = {** resolved_attr_cols , ** resolved_measure_cols }
186197
187- return self .not_indexed (columns = columns , filter_by = filter_by )
198+ return self .not_indexed (
199+ columns = columns ,
200+ filter_by = filter_by ,
201+ result_page_len = result_page_len ,
202+ )
188203
189204 return self .indexed (
190205 index_by = resolved_attr_cols ,
191206 columns = resolved_measure_cols ,
192207 filter_by = filter_by ,
193208 on_execution_submitted = on_execution_submitted ,
194209 is_cancellable = is_cancellable ,
210+ result_page_len = result_page_len ,
195211 )
196212
197213 def for_visualization (
@@ -200,6 +216,7 @@ def for_visualization(
200216 auto_index : bool = True ,
201217 on_execution_submitted : Optional [Callable [[Execution ], None ]] = None ,
202218 is_cancellable : bool = False ,
219+ result_page_len : Optional [int ] = None ,
203220 ) -> pandas .DataFrame :
204221 """
205222 Creates a data frame with columns based on the content of the visualization with the provided identifier.
@@ -211,6 +228,8 @@ def for_visualization(
211228 on_execution_submitted (Optional[Callable[[Execution], None]]): Callback to call when the execution was
212229 submitted to the backend.
213230 is_cancellable (bool, optional): Whether the execution should be cancelled when the connection is interrupted.
231+ result_page_len (Optional[int]): Optional page size for result pagination.
232+ Defaults to 1000. Larger values can improve performance for large result sets.
214233
215234 Returns:
216235 pandas.DataFrame: A DataFrame instance.
@@ -231,6 +250,7 @@ def for_visualization(
231250 auto_index = auto_index ,
232251 on_execution_submitted = on_execution_submitted ,
233252 is_cancellable = is_cancellable ,
253+ result_page_len = result_page_len ,
234254 )
235255
236256 def for_created_visualization (
0 commit comments