MongoShapes

A snapshot's save on MongoDB in each shape its store cost is priced in: Update.M1 Wow's own filter and modifier (MongoSnapshotStore), and the candidate shapes against it.

Types

Link copied to clipboard

A snapshot's update, the shapes its store cost is priced in: M1 Wow's batch save today (MongoSnapshotWrites: its guard with no stale mark, stale_version: {$exists: false}, in the one filter document, and a modifier $set of its fields); M0 the aggregation pipeline $set of every field as $literal and the stale mark's $cond it sent before; M2 M1 with $setOnInsert for what never changes; M3 a replaceOne of the document.

Properties

Link copied to clipboard
const val AGGREGATE_ID: String
Link copied to clipboard
val BIG_STATE: Document

A state of about 4 KB: notes of fixed text, so no store compresses them away.

Link copied to clipboard
const val STATE: String
Link copied to clipboard
const val TENANT_ID: String
Link copied to clipboard
const val VERSION: String

Functions

Link copied to clipboard
fun keyOf(tenant: String, id: String): Document?
Link copied to clipboard
fun modelOf(template: Document, command: Aggregates.Command, update: MongoShapes.Update, bigState: Boolean): WriteModel<Document>

command's snapshot save in the shape of update, guarded by a lower version of no higher state revision.