summary refs log tree commit diff
path: root/synapse/storage/stats.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* I mustn't forget my morning corn flake(8)s github/rei/rss_inc4 rei/rss_inc4Olivier Wilkinson (reivilibre)2019-08-201-0/+2
| | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* Collect old current stats rows when updating stats with deltasOlivier Wilkinson (reivilibre)2019-08-201-2/+79
| | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* Handle state deltas and turn them into stats deltasOlivier Wilkinson (reivilibre)2019-08-201-1/+111
| | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* Add storage function for storing stats deltasOlivier Wilkinson (reivilibre)2019-08-201-2/+169
| | | | | | Old collection is not included in this commit Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* Tear out current room & user statistics (#5880)reivilibre2019-08-201-409/+3
| | | | | | | | | | * Tear out current room & user statistics. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> * Black is back with more linting complaints Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* 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
|
* 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