Skip to content

Commit 730ee79

Browse files
authored
fix(settingsHandler-bulk_batch_size): ZMS-218: make BULK_BATCH_SIZE value configurable through settings API (#804)
* make BULK_BATCH_SIZE value configurable through settings API * rewrite description * fix description wording
1 parent 5ce9989 commit 730ee79

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

lib/settings-handler.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@ const SETTING_KEYS = [
138138
.allow('')
139139
.trim()
140140
.pattern(/^\d+\s*[a-z]*(\s*,\s*\d+\s*[a-z]*)*$/)
141+
},
142+
143+
{
144+
key: 'const:max:bulk_batch_size',
145+
name: 'Max bulk batch write size',
146+
description: 'The maximum number of entries that are collected and then written in one insert query',
147+
type: 'number',
148+
constKey: 'BULK_BATCH_SIZE',
149+
schema: Joi.number()
141150
}
142151
];
143152

0 commit comments

Comments
 (0)