Cue
Decisions

One row per entity

One row per entity

The orchestrator used to rewrite every entity of an organization as one JSON blob. A transition only needs the entity, the children named in its tree, and the running parents. One row per entity keeps that read small. The operation tree stays JSON on the row, because the engine rereads the function and lines openings up by position. Parent and child links sit in their own table: a child can have several parents, and walking every entity to find them does not scale. ADR 0007 replaces the rule that past trees are not kept and that the next flow run replaces the row.

On this page