Skip to content
Snippets Groups Projects
  1. Aug 06, 2019
    • Erik Johnston's avatar
      Newsfile · c32d3590
      Erik Johnston authored
      c32d3590
    • Erik Johnston's avatar
      Don't unnecessarily block notifying of new events. · bf4db429
      Erik Johnston authored
      When persisting events we calculate new stream orderings up front.
      Before we notify about an event all events with lower stream orderings
      must have finished being persisted.
      
      This PR moves the assignment of stream ordering till *after* calculated
      the new current state and split the batch of events into separate chunks
      for persistence. This means that if it takes a long time to calculate
      new current state then it will not block events in other rooms being
      notified about.
      
      This should help reduce some global pauses in the events stream which
      can last for tens of seconds (if not longer), caused by some
      particularly expensive state resolutions.
      bf4db429
  2. Aug 01, 2019
  3. Jul 31, 2019
  4. Jul 30, 2019
Loading