Skip to content
Snippets Groups Projects
  • Erik Johnston's avatar
    5d3850b0
    Port `EventInternalMetadata` class to Rust (#16782) · 5d3850b0
    Erik Johnston authored
    
    There are a couple of things we need to be careful of here:
    
    1. The current python code does no validation when loading from the DB,
    so we need to be careful to ignore such errors (at least on jki.re there
    are some old events with internal metadata fields of the wrong type).
    2. We want to be memory efficient, as we often have many hundreds of
    thousands of events in the cache at a time.
    
    ---------
    
    Co-authored-by: default avatarQuentin Gliech <quenting@element.io>
    5d3850b0
    History
    Port `EventInternalMetadata` class to Rust (#16782)
    Erik Johnston authored
    
    There are a couple of things we need to be careful of here:
    
    1. The current python code does no validation when loading from the DB,
    so we need to be careful to ignore such errors (at least on jki.re there
    are some old events with internal metadata fields of the wrong type).
    2. We want to be memory efficient, as we often have many hundreds of
    thousands of events in the cache at a time.
    
    ---------
    
    Co-authored-by: default avatarQuentin Gliech <quenting@element.io>