anonymousland-synapse/synapse/storage
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
..
engines Optionally make committing to postgres asynchronous. 2016-06-20 17:53:38 +01:00
schema Match against event_id, rather than room_id 2016-09-21 16:46:59 +01:00
util Add tests for redactions 2016-04-07 16:52:07 +01:00
__init__.py Handling expiring stream extrems correctly. 2016-09-15 17:34:59 +01:00
_base.py Remove lru option 2016-08-19 14:17:11 +01:00
account_data.py Don't hit DB for noop replications queries 2016-06-08 11:33:30 +01:00
appservice.py Make get_new_events_for_appservice use indices 2016-08-19 10:28:42 +01:00
background_updates.py Add WHERE clause support to index creation 2016-09-12 16:55:01 +01:00
client_ips.py PEP8 2016-07-22 13:21:07 +01:00
deviceinbox.py Fix direct to device messages recieved over federation to notify sync 2016-09-12 12:30:46 +01:00
devices.py Log the types and values when failing to store devices 2016-09-07 17:19:18 +01:00
directory.py Add some invalidations to a cache_stream 2016-08-15 11:15:17 +01:00
end_to_end_keys.py PEP8 2016-08-03 15:42:08 +01:00
event_federation.py Remove spurious AS clause 2016-09-21 16:28:47 +01:00
event_push_actions.py Remove where clause 2016-09-12 17:05:54 +01:00
events.py Index contains_url for file search queries 2016-09-12 16:57:05 +01:00
filtering.py Cache filters 2016-01-28 17:09:09 +00:00
keys.py Add more key storage funcs into slave store 2016-07-28 15:41:26 +01:00
media_repository.py Implement purge_media_cache admin API 2016-06-29 14:57:59 +01:00
openid.py Add an openidish mechanism for proving to third parties that you own a given user_id 2016-05-05 13:42:44 +01:00
prepare_database.py Readd entries to public_room_list_stream that were deleted 2016-09-21 15:24:22 +01:00
presence.py Add some invalidations to a cache_stream 2016-08-15 11:15:17 +01:00
profile.py Add the create_profile method back since the tests use it 2016-06-17 19:20:47 +01:00
push_rule.py Remove unused imports 2016-09-05 10:52:01 +01:00
pusher.py Remove lru option 2016-08-19 14:17:11 +01:00
receipts.py Lower get_linearized_receipts_for_room cache size 2016-08-31 16:19:44 +01:00
registration.py Add appservice worker 2016-08-18 14:59:55 +01:00
rejections.py copyrights 2016-01-07 04:26:29 +00:00
room.py Reduce DB hits for replication 2016-09-23 16:49:21 +01:00
roommember.py Reduce batch size to be under SQL limit 2016-09-09 11:03:31 +01:00
search.py Remove event fetching from DB threads 2016-06-03 17:22:13 +01:00
signatures.py Remove lru option 2016-08-19 14:17:11 +01:00
state.py Fix reindex 2016-09-14 10:18:30 +01:00
stream.py Calculate the public room list from a stream_ordering 2016-09-14 17:42:47 +01:00
tags.py Don't hit DB for noop replications queries 2016-06-08 11:33:30 +01:00
transactions.py Bump max_entries on get_destination_retry_timings 2016-09-02 14:08:33 +01:00