This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
synapse_port_db
assumes events
is append-only, but it is not #12007
Open
Description
synapse_port_db
has a list of tables that it believes to be "append-only". That is to say, if the script is re-run on an updated copy of the input database, it will not clear these tables, but just add new rows that have arrived since last time.
Included in this list is events
, which is generally read-only, but we do sometimes update existing rows - for example, when we convert an outlier to a non-outlier.
This means that any event that is de-outliered between runs of synapse_port_db
may still be marked as an outlier in the target database, even though we have full state for it.
I'm not entirely sure if this has any measurable impact. It's possible that it simply means we will redundantly de-outlier it again.