MatrixSynapse/synapse/storage
Dirk Klimpel c3119d1536
Add an admin API for users' media statistics (#8700)
Add `GET /_synapse/admin/v1/statistics/users/media` to get statisics about local media usage by users.
Related to #6094
It is the first API for statistics.
Goal is to avoid/reduce usage of sql queries like [Wiki analyzing Synapse](https://github.com/matrix-org/synapse/wiki/SQL-for-analyzing-Synapse-PostgreSQL-database-stats)

Signed-off-by: Dirk Klimpel dirk@klimpel.org
2020-11-05 18:59:12 +00:00
..
databases Add an admin API for users' media statistics (#8700) 2020-11-05 18:59:12 +00:00
engines
schema
util
__init__.py
_base.py Replace DeferredCache with LruCache where possible (#8563) 2020-10-19 12:20:29 +01:00
background_updates.py
database.py Tell Black to format code for Python 3.5 (#8664) 2020-10-27 23:26:36 +00:00
keys.py
persist_events.py
prepare_database.py
purge_events.py
push_rule.py
relations.py
roommember.py
state.py
types.py Pre-emptively fix synapse.storage.types.Connection for future mypy release (#8577) 2020-10-17 09:51:38 +01:00