anonymousland-synapse/synapse/storage/data_stores/main
Erik Johnston a319cb1dd1
Change device list streams to have one row per ID (#7010)
* Add 'device_lists_outbound_pokes' as extra table.

This makes sure we check all the relevant tables to get the current max
stream ID.

Currently not doing so isn't problematic as the max stream ID in
`device_lists_outbound_pokes` is the same as in `device_lists_stream`,
however that will change.

* Change device lists stream to have one row per id.

This will make it possible to process the streams more incrementally,
avoiding having to process large chunks at once.

* Change device list replication to match new semantics.

Instead of sending down batches of user ID/host tuples, send down a row
per entity (user ID or host).

* Newsfile

* Remove handling of multiple rows per ID

* Fix worker handling

* Comments from review
2020-03-19 11:36:53 +00:00
..
schema Populate the room version from state events (#7070) 2020-03-16 22:31:47 +00:00
__init__.py Add 'device_lists_outbound_pokes' as extra table. 2020-02-28 11:15:11 +00:00
account_data.py Merge pull request #6487 from matrix-org/erikj/pass_in_db 2019-12-09 13:53:21 +00:00
appservice.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
cache.py Propagate cache invalidates from workers to other workers. (#6748) 2020-01-27 13:47:50 +00:00
client_ips.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
deviceinbox.py Add delta file to fix missing default table data (#6555) 2019-12-18 11:13:33 +00:00
devices.py Comments from review 2020-03-18 10:13:55 +00:00
directory.py Move DB pool and helper functions into dedicated Database class 2019-12-05 10:46:37 +00:00
e2e_room_keys.py Move DB pool and helper functions into dedicated Database class 2019-12-05 10:46:37 +00:00
end_to_end_keys.py don't insert into the device table for remote cross-signing keys (#6956) 2020-02-20 09:59:00 -05:00
event_federation.py Improve get auth chain difference algorithm. (#7095) 2020-03-18 16:46:41 +00:00
event_push_actions.py Move get_time_of_last_push_action_before to the EventPushActionsWorkerStore 2020-03-09 13:58:38 +00:00
events_bg_updates.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
events_worker.py Read the room version from database when fetching events (#6874) 2020-03-04 13:11:04 +00:00
events.py Remove special auth and redaction rules for aliases events in experimental room ver. (#7037) 2020-03-09 08:58:25 -04:00
filtering.py Move DB pool and helper functions into dedicated Database class 2019-12-05 10:46:37 +00:00
group_server.py Allow moving group read APIs to workers (#6866) 2020-02-07 11:14:19 +00:00
keys.py move batch_iter to a separate module 2020-01-16 22:25:32 +00:00
media_repository.py Change DataStores to accept 'database' param. 2019-12-06 13:30:06 +00:00
monthly_active_users.py Break down monthly active users by appservice_id (#7030) 2020-03-06 18:14:19 +00:00
openid.py Move DB pool and helper functions into dedicated Database class 2019-12-05 10:46:37 +00:00
presence.py move batch_iter to a separate module 2020-01-16 22:25:32 +00:00
profile.py Move DB pool and helper functions into dedicated Database class 2019-12-05 10:46:37 +00:00
push_rule.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
pusher.py Merge worker apps into one. (#6964) 2020-02-25 16:56:55 +00:00
receipts.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
registration.py Fixed set a user as an admin with the new API (#6928) 2020-02-28 09:58:05 +00:00
rejections.py Move DB pool and helper functions into dedicated Database class 2019-12-05 10:46:37 +00:00
relations.py Move DB pool and helper functions into dedicated Database class 2019-12-05 10:46:37 +00:00
room.py Store room version on invite (#6983) 2020-02-26 16:58:33 +00:00
roommember.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
search.py Fix redacted events being returned in search results ordered by "recent" (#6522) 2019-12-12 15:53:49 +00:00
signatures.py Move DB pool and helper functions into dedicated Database class 2019-12-05 10:46:37 +00:00
state_deltas.py Always return a deferred from get_current_state_deltas. (#7019) 2020-03-02 16:52:15 +00:00
state.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
stats.py Remove unused get_room_stats_state method. (#6869) 2020-02-07 15:30:26 +00:00
stream.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
tags.py Move DB pool and helper functions into dedicated Database class 2019-12-05 10:46:37 +00:00
transactions.py Change DataStores to accept 'database' param. 2019-12-06 13:30:06 +00:00
user_directory.py Reduce amount of logging at INFO level. (#6862) 2020-02-06 13:31:05 +00:00
user_erasure_store.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00