@lancedb/lancedb • Docs
@lancedb/lancedb / MemWalWriteSpec
Interface: MemWalWriteSpec¶
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?¶
Indexes the MemWAL keeps up to date. Omit for every index the table has,
including ones created later. Pass [] for none.
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.