Skip to content

Commit c44a589

Browse files
committed
temporary fix for #185 while we wait for https://bugtrack.marklogic.com/30470
1 parent ae68194 commit c44a589

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/marklogic/client/impl/PojoRepositoryImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ public long count(String[] collections, Transaction transaction) {
207207
@Override
208208
public long count(PojoQueryDefinition query, Transaction transaction) {
209209
long pageLength = getPageLength();
210-
setPageLength(0);
210+
// set below to 0 when we get a fix for https://bugtrack.marklogic.com/30470
211+
setPageLength(1);
211212
PojoPage<T> page = search(query, 1, transaction);
212213
setPageLength(pageLength);
213214
return page.getTotalSize();

0 commit comments

Comments
 (0)