sqlmesh
sqlmesh copied to clipboard
Chore!: Improve the data model and performance of the state sync
This update contains the following performance improvements to the state sync:
- Add dev intervals in bulk for new forward-only snapshots. Previously they were added one interval at a time.
- Update the
updated_ts
property using theUPDATE
statement for all impacted snapshots at once when demoting snapshots from an environment. - Only fetch the
plan_id
attribute and only update thefinalized_ts
attribute when finalizing an environment. Previously we serialized / deserialized the full environment object to perform this operation. - Use the
UPDATE
statement to update theunpaused_ts
attribute for all impacted snapshots at once when unpausing.