MongoQueryIndex
data class MongoQueryIndex(val context: String, val aggregate: String, val name: String, val keys: List<String>, val collection: String = MongoSnapshotStore.collectionName(context, aggregate), partial: Document? = MongoSnapshotStore.notDeleted(), val sparse: Boolean = false)
A planned query index of aggregate in context: its name, unique within its collection, and its keys in order, each ascending, over the documents its partial filter keeps: on the snapshot collection, the snapshots that are not deleted; on the log collection (MongoQueryIndexes.planLog), the streams. A sparse one has no partial filter and holds the documents that have its key: a built-in access attribute's tenant-scoped key on a log.
Constructors
Properties
Functions
Link copied to clipboard
The key document of the index: {tenant_id: 1, <key>: 1, ...}.
Link copied to clipboard
The partial filter of the index: {deleted: false} on the snapshots, {version: {$exists: true}} on a log; none for a sparse one.