BulkWriterOptions
Addedv2.6.12
This interface configures a BulkWriter instance, including schema validation, storage behavior, file format, chunk size, and local output path.
interface BulkWriterOptions
FIELDS:
-
schema (BulkWriterSchema) -
[REQUIRED]
Defines the fields that
BulkWritervalidates and serializes. -
Specifies a custom storage adapter. If omitted,
LocalStoragekeeps generated files on disk. -
format ('json' | 'parquet') -
Specifies the generated file format. Defaults to
json. -
chunkSize (number) -
Specifies the approximate buffered byte size that triggers automatic commit.
-
localPath (string) -
Specifies the local base directory where chunk folders are created.
Example
const options = {
schema,
format: 'json',
chunkSize: 64 * 1024 * 1024,
localPath: '/tmp/milvus-bulk',
};