Skip to content
Snippets Groups Projects
  1. Mar 13, 2018
  2. Feb 20, 2018
  3. Feb 15, 2018
  4. Feb 06, 2018
    • Erik Johnston's avatar
      Store state groups separately from events (#2784) · 3d33eef6
      Erik Johnston authored
      * Split state group persist into seperate storage func
      
      * Add per database engine code for state group id gen
      
      * Move store_state_group to StateReadStore
      
      This allows other workers to use it, and so resolve state.
      
      * Hook up store_state_group
      
      * Fix tests
      
      * Rename _store_mult_state_groups_txn
      
      * Rename StateGroupReadStore
      
      * Remove redundant _have_persisted_state_group_txn
      
      * Update comments
      
      * Comment compute_event_context
      
      * Set start val for state_group_id_seq
      
      ... otherwise we try to recreate old state groups
      
      * Update comments
      
      * Don't store state for outliers
      
      * Update comment
      
      * Update docstring as state groups are ints
      Unverified
      3d33eef6
  5. Jan 22, 2018
  6. Apr 11, 2017
  7. Apr 03, 2017
  8. Mar 20, 2017
  9. Jan 31, 2017
  10. Jan 20, 2017
  11. Nov 23, 2016
  12. Sep 23, 2016
    • Erik Johnston's avatar
      Reduce DB hits for replication · 748d8fdc
      Erik Johnston authored
      Some streams will occaisonally advance their positions without actually
      having any new rows to send over federation. Currently this means that
      the token will not advance on the workers, leading to them repeatedly
      sending a slightly out of date token. This in turns requires the master
      to hit the DB to check if there are any new rows, rather than hitting
      the no op logic where we check if the given token matches the current
      token.
      
      This commit changes the API to always return an entry if the position
      for a stream has changed, allowing workers to advance their tokens
      correctly.
      748d8fdc
  13. Aug 31, 2016
  14. Aug 25, 2016
  15. Jul 26, 2016
  16. Jun 24, 2016
  17. May 17, 2016
  18. May 16, 2016
  19. May 13, 2016
  20. Apr 21, 2016
  21. Apr 19, 2016
  22. Apr 07, 2016
  23. Apr 06, 2016
  24. Mar 30, 2016
  25. Mar 15, 2016
  26. Mar 03, 2016
  27. Mar 02, 2016
  28. Mar 01, 2016
    • Mark Haines's avatar
      Add a /replication API for extracting the updates that happened on · 60a0f81c
      Mark Haines authored
      synapse
      
      This is necessary for replicating the data in synapse to be visible to a
      separate service because presence and typing notifications aren't stored
      in a database so won't be visible to another process.
      
      This API can be used to either get the raw data by requesting the tables
      themselves or to just receive notifications for updates by following the
      streams meta-stream.
      
      Returns updates for each table requested a JSON array of arrays with a
      row for each row in the table.
      
      Each table is prefixed by a header row with the: name of the table,
      current stream_id position for the table, number of rows, number of
      columns and the names of the columns.
      This is followed by the rows that have been added to the server since
      the requester last asked.
      
      The API has a timeout and is hooked up to the notifier so that a slave
      can long poll for updates.
      60a0f81c
Loading