Skip to main content

split_conduit_highlight_counts

Function split_conduit_highlight_counts 

Source
pub(super) async fn split_conduit_highlight_counts(
    services: &Services,
) -> Result
Expand description

Splits a Conduit database’s conflated highlight-count column.

Conduit opens roomuserid_lastnotificationread against the userroomid_highlightcount tree, a copy-paste in its schema, so one column holds both stores. tuwunel keeps them apart under the same byte layouts, so each room-keyed row moves verbatim into its own column and the user-keyed highlight counts stay. A native database has no room-keyed row to move, so it pays one row of the walk and takes no cork.