You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/PowerPlatform/Dataverse/data/_odata.py
+35-12Lines changed: 35 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -840,6 +840,7 @@ def _get_multiple(
840
840
page_size: Optional[int] =None,
841
841
count: bool=False,
842
842
include_annotations: Optional[str] =None,
843
+
prefetch_pages: int=0,
843
844
) ->Iterable[List[Dict[str, Any]]]:
844
845
"""Iterate records from an entity set, yielding one page (list of dicts) at a time.
845
846
@@ -861,6 +862,11 @@ def _get_multiple(
861
862
:type count: ``bool``
862
863
:param include_annotations: OData annotation pattern for the ``Prefer: odata.include-annotations`` header (e.g. ``"*"`` or ``"OData.Community.Display.V1.FormattedValue"``), or ``None``.
863
864
:type include_annotations: ``str`` | ``None``
865
+
:param prefetch_pages: Number of pages to pre-fetch ahead of the caller. ``0`` (default) is
866
+
fully sequential. ``1`` submits the next HTTP request immediately after receiving the
867
+
current page, overlapping network I/O with the caller's processing time. Values above
868
+
``1`` are capped at ``1``.
869
+
:type prefetch_pages: ``int``
864
870
865
871
:return: Iterator yielding pages (each page is a ``list`` of record dicts).
0 commit comments