File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,14 @@ given file that would change the tables to match the calculated state. (Note
1010that if ` -t ` is given then each change to a particular state group is wrapped
1111in a transaction).
1212
13+ The SQL generated by the ` -o ` option is safe to apply against the database with
14+ Synapse running. This is because the ` state_groups ` and ` state_groups_state `
15+ tables are append-only: once written to the database, they are never modified.
16+ There is therefore no danger of a modification racing against a running synapse.
17+ Further, this script makes its changes within atomic transactions, and each
18+ transaction should not affect the results from any of the queries that synapse
19+ performs.
20+
1321The tool will also ensure that the generated state deltas do give the same state
1422as the existing state deltas.
1523
You can’t perform that action at this time.
0 commit comments