planLog

fun planLog(context: String, aggregate: String, plan: QueryIndexPlan): List<MongoQueryIndex>

The indexes of plan, the access attributes of aggregate in context, on its log collection: led by the tenant, each attribute's document path (multikey for a multiple one), partial on the streams ({version: {$exists: true}}), which every events query asks for, so it can use them; the log's placeholders hold no version. No tie-breaker ends them: they narrow the streams an access policy lets a reader see, and are not read for an order, which for an events query ends with the stream key (tenant, aggregate, version).