The same answer, computed once per store rather than once per editor
(#8452): every transaction and preview builds an editor, and on a large
model each scan visited every source id. Source indexes only grow
(hydration and federation add ids; tombstones never remove one), so an
index with the same identity and size has the same maximum. Any change of
identity or size rescans. A store that grew without either changing is
still caught: StoreEditor.addEntity checks the next id against the source
before allocating and then forces rescanHighestExpressId.
The same answer, computed once per store rather than once per editor (#8452): every transaction and preview builds an editor, and on a large model each scan visited every source id. Source indexes only grow (hydration and federation add ids; tombstones never remove one), so an index with the same identity and size has the same maximum. Any change of identity or size rescans. A store that grew without either changing is still caught:
StoreEditor.addEntitychecks the next id against the source before allocating and then forces rescanHighestExpressId.