constructor #
Available since 7.9.0
Instantiate a new BatchController.
Each instance will start a timer to periodically send batch requests.
Arguments #
const batch = new BatchController(sdk, options);
Argument | Type | Description |
---|---|---|
sdk | Kuzzle | SDK instance |
options | object | Additional options |
options #
interval
: Timer interval in ms (10). Actions will be executed every {interval} msmaxWriteBufferSize
: Max write buffer size (200). (Should match config "limits.documentsWriteCount")maxReadBufferSize
: Max read buffer size (10000). (Should match config "limits.documentsReadCount")
Edit this page on Github(opens new window)