File tree Expand file tree Collapse file tree
insights/insights/doctype Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -776,13 +776,14 @@ def execute_ibis_query(
776776 query : IbisQuery ,
777777 page = 1 ,
778778 page_size = 100 ,
779+ paginate = True ,
779780 force = False ,
780781 cache = True ,
781782 cache_expiry = 3600 ,
782783 reference_doctype = None ,
783784 reference_name = None ,
784785):
785- if hasattr (query , "limit" ):
786+ if paginate and hasattr (query , "limit" ):
786787 page_size = clamp (page_size , 1 , 10_000 )
787788 page = clamp (page , 1 , 10_000 )
788789 offset = (page - 1 ) * page_size
Original file line number Diff line number Diff line change @@ -238,10 +238,13 @@ def download_results(
238238 if decimal_casts :
239239 ibis_query = ibis_query .mutate (** decimal_casts )
240240
241+ if hasattr (ibis_query , "limit" ):
242+ ibis_query = ibis_query .limit (100_000 )
243+
241244 results , _ = execute_ibis_query (
242245 ibis_query ,
243246 cache = False ,
244- page_size = 10_00_000 ,
247+ paginate = False ,
245248 reference_doctype = self .doctype ,
246249 reference_name = self .name ,
247250 )
You can’t perform that action at this time.
0 commit comments