summaryrefslogtreecommitdiff
path: root/ext/kv/01_db.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/kv/01_db.ts')
-rw-r--r--ext/kv/01_db.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/kv/01_db.ts b/ext/kv/01_db.ts
index b423a2553..70e4c7fca 100644
--- a/ext/kv/01_db.ts
+++ b/ext/kv/01_db.ts
@@ -155,7 +155,7 @@ class Kv {
let batchSize = options.batchSize ?? (options.limit ?? 100);
if (batchSize <= 0) throw new Error("batchSize must be positive");
- if (batchSize > 500) batchSize = 500;
+ if (options.batchSize === undefined && batchSize > 500) batchSize = 500;
return new KvListIterator({
limit: options.limit,