Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

limit the number of items returned queryItems #146

Open
PsidomPC opened this issue Jan 28, 2019 · 1 comment
Open

limit the number of items returned queryItems #146

PsidomPC opened this issue Jan 28, 2019 · 1 comment

Comments

@PsidomPC
Copy link

How do I limit the number of items returned when using QueryItems? I've tried both maxItemCount and pageSize, both don't seem to work:

options = {}
options['enableCrossPartitionQuery'] = True
options['pageSize'] = 5        # also tried maxItemCount

self.app_cosmos_client.QueryItems(
    database_or_Container_link=collection_link,
    query=f"""
        SELECT * FROM c
      """,
      options=options
)
@rajata07
Copy link

any updates on this? I have the same issue. maxItemCount does not work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants