Reduce state pulled from DB due to sending typing and receipts over federation (#12964)
Reducing the amount of state we pull from the DB is useful as fetching state is expensive in terms of DB, CPU and memory.
Showing
- changelog.d/12964.misc 1 addition, 0 deletionschangelog.d/12964.misc
- synapse/federation/sender/__init__.py 5 additions, 1 deletionsynapse/federation/sender/__init__.py
- synapse/handlers/typing.py 5 additions, 2 deletionssynapse/handlers/typing.py
- synapse/state/__init__.py 0 additions, 4 deletionssynapse/state/__init__.py
- synapse/storage/_base.py 1 addition, 0 deletionssynapse/storage/_base.py
- synapse/storage/controllers/state.py 8 additions, 0 deletionssynapse/storage/controllers/state.py
- synapse/storage/databases/main/roommember.py 37 additions, 0 deletionssynapse/storage/databases/main/roommember.py
- tests/federation/test_federation_sender.py 7 additions, 7 deletionstests/federation/test_federation_sender.py
- tests/handlers/test_typing.py 4 additions, 2 deletionstests/handlers/test_typing.py
Loading
Please register or sign in to comment