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
Modifying Page Retrieval To Fix Total Page Count and Improve Overall Functionality of Pagination in Spring (Azure#30694)
* Modifying totalpage calculation for pageable objects.
* Adding logic to grab the next set (page) of data when the end of a partition is reached. This will allow us to accurately report the total number of pages being returned and improve functionality to require fetching far less pages in cases where data is split across many partitions.
* Fixing star imports.
* Adding another unit test.
* Fixing issues brought up in PR. Also removing unit test that is no longer applicable.
* Updating the change log.
* Simplifying logic for while loop.
* More logic simplification and adding another unit test.
* Removing function as we now only call the functionality once.
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/common/TestConstants.java
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplateIT.java
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/core/CosmosTemplatePartitionIT.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -340,7 +340,7 @@ public void testPartitionedPaginationQuery() {
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageableAddressRepositoryIT.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ public void testFindAllByPage() {
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/PageablePersonRepositoryIT.java
-8Lines changed: 0 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -80,14 +80,6 @@ public void setUp() {
80
80
// With documents more than 10 KB, and collection RUs 400,
81
81
// it usually return documents less than total 12 documents.
82
82
83
-
// This test covers the case where page size is greater than returned documents limit
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/ProjectRepositorySortIT.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -227,7 +227,7 @@ public void testFindWithPageableAndSort() {
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-spring-data-cosmos/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
#### Breaking Changes
8
8
9
9
#### Bugs Fixed
10
+
* Fixing pagination bug when performing a cross-partition query to fill every page and fix the total page count reporting. - See [PR 30694](https://github.com/Azure/azure-sdk-for-java/pull/30694)
0 commit comments