Decrease the page size for OPK queries

A single element is almost always enough
This commit is contained in:
Ravi Khadiwala 2025-05-16 13:13:46 -05:00 committed by Jon Chambers
parent 43a534f05b
commit aafcd63a9f
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ public abstract class SingleUsePreKeyStore<K extends PreKey<?>> {
":sortprefix", getSortKeyPrefix(deviceId)))
.projectionExpression(KEY_DEVICE_ID_KEY_ID)
.consistentRead(false)
.limit(1)
.build())
.items())
.map(item -> DeleteItemRequest.builder()