summary refs log tree commit diff
path: root/synapse/storage/stats.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'develop' into rei/room_stats_separatedOlivier Wilkinson (reivilibre)2019-08-141-23/+25
|\
| * Stop trying to fetch events with event_id=None. (#5753)Richard van der Hoff2019-07-241-9/+11
| | | | | | | | | | | | | | `None` is not a valid event id, so queuing up a database fetch for it seems like a silly thing to do. I considered making `get_event` return `None` if `event_id is None`, but then its interaction with `allow_none` seemed uninituitive, and strong typing ftw.
| * Replace returnValue with return (#5736)Amber Brown2019-07-231-8/+8
| |
* | Clarify docstrings in `storage.stats`Olivier Wilkinson (reivilibre)2019-08-141-12/+18
| | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | LintingOlivier Wilkinson (reivilibre)2019-08-131-3/+1
| | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | Remove clean-up handler and replace with no-op as not currently needed.Olivier Wilkinson (reivilibre)2019-08-131-13/+5
| | | | | | | | | | | | needed. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | Remove obsolete functionOlivier Wilkinson (reivilibre)2019-08-131-15/+0
| | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | Fix issue with not selecting a needed columnOlivier Wilkinson (reivilibre)2019-08-131-1/+2
| | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | Add SQLite support by working around missing syntaxOlivier Wilkinson (reivilibre)2019-08-131-7/+15
| |
* | Docstrings in `storage.stats`.Olivier Wilkinson (reivilibre)2019-08-121-22/+154
| | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | Move back to `defer.inlineCallbacks` from `async` as it makes statsOlivier Wilkinson (reivilibre)2019-08-091-12/+19
| | | | | | | | | | | | unergonomic if we move to `async` from the bottom-up. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | Remove obsolete functions for updating stats absolutely.Olivier Wilkinson (reivilibre)2019-08-081-15/+0
| | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | Introduce `get_room_state`; a way to get state for a single roomOlivier Wilkinson (reivilibre)2019-08-081-0/+14
| | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | Fix testsOlivier Wilkinson (reivilibre)2019-08-081-9/+47
| | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | Introduce `total_events` tracking and rework statistics tracking.Olivier Wilkinson (reivilibre)2019-08-081-169/+603
| | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | Track more stats positionsOlivier Wilkinson (reivilibre)2019-08-081-11/+48
| | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* | Use `threading.Lock` to prevent concurrent incremental position updatesOlivier Wilkinson (reivilibre)2019-08-081-0/+4
|/ | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* Run Black. (#5482)Amber Brown2019-06-201-10/+24
|
* FixErik Johnston2019-06-031-1/+2
|
* Ignore room state with null bytes in for room statsErik Johnston2019-06-031-0/+15
|
* Add indices. Remove room_ids accidentally addedErik Johnston2019-05-311-13/+28
| | | | | | | | | | We have to do this by re-inserting a background update and recreating tables, as the tables only get created during a background update and will later be deleted. We also make sure that we remove any entries that should have been removed but weren't due to a race that has been fixed in a previous commit.
* Move deletion from table inside txnErik Johnston2019-05-301-2/+5
|
* Fetch membership counts all at onceErik Johnston2019-05-301-16/+7
|
* Get events all at onceErik Johnston2019-05-301-33/+26
|
* Fix logging for room stats background updateTravis Ralston2019-05-251-1/+1
|
* Room Statistics (#4338)Amber Brown2019-05-211-0/+450