Skip to content

@lancedb/lancedbDocs


@lancedb/lancedb / LsmWriteSpec

Interface: LsmWriteSpec

Specification selecting Lance's MemWAL LSM-style write path for mergeInsert.

specType is "bucket", "identity", or "unsharded". For "bucket", column and numBuckets are required; for "identity", column is required.

Properties

column?

optional column: string;

Bucket and identity variants: the sharding column.


maintainedIndexes?

optional maintainedIndexes: string[];

Names of indexes the MemWAL should keep up to date during writes.


numBuckets?

optional numBuckets: number;

Bucket variant: the number of buckets, in [1, 1024].


specType

specType: "bucket" | "identity" | "unsharded";

One of "bucket", "identity", or "unsharded".


writerConfigDefaults?

optional writerConfigDefaults: Record<string, string>;

Default ShardWriter configuration recorded in the MemWAL index.