@lancedb/lancedb • Docs
@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 and must be a deterministic function of the unenforced primary
key (every row with a given primary key must always produce the same
column value, or upserts of that key can land in different shards and a
stale version can win).
Properties¶
column?¶
Bucket and identity variants: the sharding column.
maintainedIndexes?¶
Names of indexes the MemWAL should keep up to date during writes.
numBuckets?¶
Bucket variant: the number of buckets, in [1, 1024].
specType¶
One of "bucket", "identity", or "unsharded".
writerConfigDefaults?¶
Default ShardWriter configuration recorded in the MemWAL index.