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
10
10
that if ` -t ` is given then each change to a particular state group is wrapped
11
11
in a transaction).
12
12
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
+
13
21
The tool will also ensure that the generated state deltas do give the same state
14
22
as the existing state deltas.
15
23
You can’t perform that action at this time.
0 commit comments