MatrixSynapse/synapse/storage
Patrick Cloke 8a05d5de21
Batch look-ups to see if rooms are partial stated. (#14917)
* Batch look-ups to see if rooms are partial stated.

* Fix issues found in linting.

* Fix typo.

* Apply suggestions from code review

Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>

* Clarify comments.

Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>

* Also improve the cache size while we're at it

* is_partial_state_rooms -> is_partial_state_room_batched

* Run `black`

* Improve annotation for `simple_select_many_batch`

* Fix is_partial_state_room_batched impl

* Okay, _actually_ fix impl

* Update description.

* Update synapse/storage/databases/main/room.py

Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>

* Run black.

Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
Co-authored-by: David Robertson <davidr@element.io>
2023-01-26 17:15:36 +00:00
..
controllers Faster joins: Update room stats and the user directory on workers when finishing join (#14874) 2023-01-23 10:31:36 +00:00
databases Batch look-ups to see if rooms are partial stated. (#14917) 2023-01-26 17:15:36 +00:00
engines Make sqlite database migrations transactional again (#14910) 2023-01-25 13:38:53 +00:00
schema Drop unused table `presence` (#14825) 2023-01-13 14:17:03 +00:00
util Always notify replication when a stream advances (#14877) 2023-01-20 18:02:18 +00:00
__init__.py
_base.py
background_updates.py
database.py Batch look-ups to see if rooms are partial stated. (#14917) 2023-01-26 17:15:36 +00:00
keys.py
prepare_database.py
push_rule.py
roommember.py
types.py