forked-synapse/synapse/storage
Erik Johnston 3d33eef6fc
Store state groups separately from events (#2784)
* 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
2018-02-06 14:31:24 +00:00
..
engines Store state groups separately from events (#2784) 2018-02-06 14:31:24 +00:00
schema Store state groups separately from events (#2784) 2018-02-06 14:31:24 +00:00
util Fix assertion to stop transaction queue getting wedged 2017-03-15 12:16:55 +00:00
__init__.py Store state groups separately from events (#2784) 2018-02-06 14:31:24 +00:00
_base.py Track DB scheduling delay per-request 2018-01-16 17:23:32 +00:00
account_data.py Avoid locking account_data tables for upserts 2017-11-16 18:08:01 +00:00
appservice.py Make __init__ consitstent across Store heirarchy 2017-11-13 10:46:07 +00:00
background_updates.py Check database in has_completed_background_updates 2017-11-22 18:02:15 +00:00
client_ips.py Make __init__ consitstent across Store heirarchy 2017-11-13 10:46:07 +00:00
deviceinbox.py Make __init__ consitstent across Store heirarchy 2017-11-13 10:46:07 +00:00
devices.py Make __init__ consitstent across Store heirarchy 2017-11-13 10:46:07 +00:00
directory.py Add shutdown room API 2017-06-19 12:37:27 +01:00
end_to_end_keys.py Remove redundant invalidation 2017-05-23 09:46:59 +01:00
event_federation.py Make __init__ consitstent across Store heirarchy 2017-11-13 10:46:07 +00:00
event_push_actions.py Make __init__ consitstent across Store heirarchy 2017-11-13 10:46:07 +00:00
events.py Store state groups separately from events (#2784) 2018-02-06 14:31:24 +00:00
filtering.py replaced json.dumps with encode_canonical_json 2017-06-21 14:48:12 +02:00
group_server.py Fix typo 2017-11-09 15:56:16 +00:00
keys.py Invalidate signing key cache when we gat an update 2017-09-20 01:32:42 +01:00
media_repository.py Keep track of last access time for local media 2018-01-17 10:24:43 +00: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 Keep track of last access time for local media 2018-01-17 10:24:43 +00:00
presence.py Actually call invalidate 2017-03-24 13:28:20 +00:00
profile.py fix StoreError syntax 2017-12-05 11:09:31 +00:00
push_rule.py Increase size of push rule caches 2017-05-18 17:17:53 +01:00
pusher.py Avoid locking for upsert on pushers tables 2017-11-16 17:52:23 +00:00
receipts.py Make __init__ consitstent across Store heirarchy 2017-11-13 10:46:07 +00:00
registration.py Remove pushers when deleting access tokens 2017-11-29 16:44:35 +00:00
rejections.py copyrights 2016-01-07 04:26:29 +00:00
room.py Move store_event_search_txn to SearchStore 2018-02-05 15:43:22 +00:00
roommember.py Make __init__ consitstent across Store heirarchy 2017-11-13 10:46:07 +00:00
search.py Factor out common code for search insert 2018-02-05 16:12:14 +00:00
signatures.py User Cursor.__iter__ instead of fetchall 2017-03-23 17:53:49 +00:00
state.py Store state groups separately from events (#2784) 2018-02-06 14:31:24 +00:00
stream.py Remove preserve_context_over_{fn, deferred} 2017-11-14 11:22:42 +00:00
tags.py User Cursor.__iter__ instead of fetchall 2017-03-23 17:53:49 +00:00
transactions.py Make __init__ consitstent across Store heirarchy 2017-11-13 10:46:07 +00:00
user_directory.py Fix SQL for user search 2018-01-27 17:21:57 +00:00