Our current pagination queries don't do a very good job of showing how they can fully be used, nor how their results can be limited on a per-page basis through the use of max_item_count parameter. The closest thing we have are these tests for vector search: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/cosmos/azure-cosmos/test/test_query_vector_similarity.py#L200 and for hybrid search: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/cosmos/azure-cosmos/test/test_query_hybrid_search.py#L175.
We should as a minimum add similar tests in the relevant query test files showing the per-page and total results, as well as including some showing how it acts for cross-partition scenarios.
Files to enhance/ add to:
Our current pagination queries don't do a very good job of showing how they can fully be used, nor how their results can be limited on a per-page basis through the use of
max_item_countparameter. The closest thing we have are these tests for vector search: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/cosmos/azure-cosmos/test/test_query_vector_similarity.py#L200 and for hybrid search: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/cosmos/azure-cosmos/test/test_query_hybrid_search.py#L175.We should as a minimum add similar tests in the relevant query test files showing the per-page and total results, as well as including some showing how it acts for cross-partition scenarios.
Files to enhance/ add to: