You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The room to process. This is the value found in the `rooms` table of the database
73
+
not the common name for the room - is should look like: "!wOlkWNmgkAZFxbTaqj:matrix.org"
74
+
75
+
- -b [MIN_STATE_GROUP]
76
+
The state group to start processing from (non inclusive)
77
+
78
+
- -n [GROUPS_TO_COMPRESS]
79
+
How many groups to load into memory to compress (starting
80
+
from the 1st group in the room or the group specified by -s)
81
+
82
+
- -l [LEVELS]
83
+
Sizes of each new level in the compression algorithm, as a comma separated list.
84
+
The first entry in the list is for the lowest, most granular level, with each
85
+
subsequent entry being for the next highest level. The number of entries in the
86
+
list determines the number of levels that will be used. The sum of the sizes of
87
+
the levels effect the performance of fetching the state from the database, as the
88
+
sum of the sizes is the upper bound on number of iterations needed to fetch a
89
+
given set of state. [default's to 100,50,25]
90
+
91
+
- -m [COUNT]
92
+
If the compressor cannot save this many rows from the database then it will stop early
93
+
94
+
- -s [MAX_STATE_GROUP]
95
+
If a max_state_group is specified then only state groups with id's lower than this number are able to be
96
+
compressed.
97
+
98
+
- -o [FILE]
99
+
File to output the SQL transactions to (for later running on the database)
100
+
101
+
- -t
102
+
If this flag is set then then each change to a particular state group is wrapped in a transaction. This should be done if you wish to apply the changes while synapse is still running.
103
+
104
+
- -g
105
+
If this flag is set then output the node and edge information for the state_group
106
+
directed graph built up from the predecessor state_group links. These can be looked
107
+
at in something like Gephi (https://gephi.org)
108
+
64
109
## Using as python library
65
110
66
111
The compressor can also be built into a python library as it uses PyO3. It can be
67
112
built and installed into the current virtual environment by running `maturin develop`
68
113
114
+
All the same running options are available, see the comments in the Config struct
115
+
in lib.rs for the names of each argument. All arguments other than `db_url` and `room_id`
116
+
are optional.
117
+
69
118
The following code does exactly the same as the command-line example from above:
0 commit comments