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
With a growing number of events it gets more expensive to calculate the most recent state since we need to consider all events in the timeline.
Snapshots of the most recent state would be helpful since a "late comer" needs to read the latest snapshot and all subsequent events only.
Creating snapshots is triggered by the number of events that have been posted since the latest snapshot. The responsibility for creating the snapshot for a room/layer is transferred to the client whose latest events releases the trigger.
If there are two users A and B both clients need to count the events. If the trigger count is set to 10 and A posted 9 events the client that posts the next event is responsible for the snapshot.
Snapshots may become big and exceed the max size of matrix messages. Thus snapshots need to be sliced into chunks.
The text was updated successfully, but these errors were encountered:
Since we can't guarantee that there will be no other event between the "trigger event" and the snapshot event the snapshot needs to refer to the trigger event. That way one can check for additional events and apply them accordingly.
The snapshot is the most recent state and does not contain any del operations. Applying the snapshot means removing all items that are NOT part of the snapshot or the subsequents events.
With a growing number of events it gets more expensive to calculate the most recent state since we need to consider all events in the timeline.
Snapshots of the most recent state would be helpful since a "late comer" needs to read the latest snapshot and all subsequent events only.
Creating snapshots is triggered by the number of events that have been posted since the latest snapshot. The responsibility for creating the snapshot for a room/layer is transferred to the client whose latest events releases the trigger.
If there are two users A and B both clients need to count the events. If the trigger count is set to 10 and A posted 9 events the client that posts the next event is responsible for the snapshot.
Snapshots may become big and exceed the max size of matrix messages. Thus snapshots need to be sliced into chunks.
The text was updated successfully, but these errors were encountered: