MatrixSynapse/synapse
Erik Johnston 748d8fdc7b Reduce DB hits for replication
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.
2016-09-23 16:49:21 +01:00
..
api Update comments 2016-09-22 12:54:22 +01:00
app Reduce DB hits for replication 2016-09-23 16:49:21 +01:00
appservice
config Remove support for aggregate room lists 2016-09-15 09:28:15 +01:00
crypto
events
federation
handlers Merge pull request #1136 from matrix-org/erikj/fix_signed_3pid 2016-09-22 13:41:49 +01:00
http
metrics
push
replication Reduce DB hits for replication 2016-09-23 16:49:21 +01:00
rest Support /initialSync in synchrotron worker 2016-09-21 11:46:28 +01:00
static/client
storage Reduce DB hits for replication 2016-09-23 16:49:21 +01:00
streams
util
__init__.py
notifier.py
python_dependencies.py
server.py Support /initialSync in synchrotron worker 2016-09-21 11:46:28 +01:00
server.pyi
state.py
types.py Shuffle things around to make unit tests work 2016-09-22 11:08:12 +01:00
visibility.py