Decrease the page size for OPK queries
A single element is almost always enough
This commit is contained in:
parent
43a534f05b
commit
aafcd63a9f
|
@ -145,6 +145,7 @@ public abstract class SingleUsePreKeyStore<K extends PreKey<?>> {
|
||||||
":sortprefix", getSortKeyPrefix(deviceId)))
|
":sortprefix", getSortKeyPrefix(deviceId)))
|
||||||
.projectionExpression(KEY_DEVICE_ID_KEY_ID)
|
.projectionExpression(KEY_DEVICE_ID_KEY_ID)
|
||||||
.consistentRead(false)
|
.consistentRead(false)
|
||||||
|
.limit(1)
|
||||||
.build())
|
.build())
|
||||||
.items())
|
.items())
|
||||||
.map(item -> DeleteItemRequest.builder()
|
.map(item -> DeleteItemRequest.builder()
|
||||||
|
|
Loading…
Reference in New Issue