Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Convert `chain` to `list` as `chain` is only once iterable. github/rei/rss_inc6 rei/rss_inc6 | Olivier Wilkinson (reivilibre) | 2019-08-30 | 1 | -2/+2 |
| | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
* | Merge branch 'rei/rss_target' into rei/rss_inc6 | Olivier Wilkinson (reivilibre) | 2019-08-30 | 1 | -0/+112 |
|\ | |||||
| * | Count total_events and total_event_bytes within the loop. | Olivier Wilkinson (reivilibre) | 2019-08-29 | 1 | -4/+9 |
| | | | | | | | | | | | | | | In this case, we still update these counts if we get stuck in the loop because the server is busy. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Add incremental counting for rooms' total events and total event bytes. | Olivier Wilkinson (reivilibre) | 2019-08-28 | 1 | -0/+106 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Add `total_event_bytes` to room statistics schema. | Olivier Wilkinson (reivilibre) | 2019-08-28 | 1 | -0/+1 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
* | | Code formatting (Black) | Olivier Wilkinson (reivilibre) | 2019-08-29 | 1 | -12/+30 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
* | | Upsert fixes | Olivier Wilkinson (reivilibre) | 2019-08-28 | 1 | -8/+15 |
| | | |||||
* | | Hoist up None check to prevent trying to iterate over NoneType.keys() | Olivier Wilkinson (reivilibre) | 2019-08-28 | 1 | -3/+4 |
|/ | |||||
* | Merge branch 'rei/rss_target' into rei/rss_inc3 | Olivier Wilkinson (reivilibre) | 2019-08-28 | 1 | -87/+94 |
|\ | |||||
| * | Code formatting (Black) github/rei/rss_inc2 rei/rss_inc2 | Olivier Wilkinson (reivilibre) | 2019-08-28 | 1 | -1/+3 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Update synapse/storage/stats.py | reivilibre | 2019-08-28 | 1 | -1/+1 |
| | | | | | | Co-Authored-By: Erik Johnston <erik@matrix.org> | ||||
| * | Clean up code with improved naming and hoist around functions. | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -79/+91 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Fix logic error. | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -1/+2 |
| | | | | | | | | | | | | | | `absolute_fields` being None shouldn't preclude completion of a current stats row. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Rename `room_state` table to `room_stats_state` | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Remove obsolete `OldCollectionRequired` as old collection is obsolete. | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -6/+0 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
* | | Use `DeferredLock` instead of `threading.Lock` | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -2/+3 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
* | | Fix logic error. | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -1/+2 |
| | | | | | | | | | | | | | | `absolute_fields` being None shouldn't preclude completion of a current stats row. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
* | | Invalidate `get_earliest_token_for_stats` cache as required. | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -0/+1 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
* | | For user stats, handle other membership transitions properly. | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -4/+1 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
* | | Merge branch 'rei/rss_inc2' into rei/rss_inc3 | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -99/+214 |
|\| | |||||
| * | Switch to milliseconds in room/user stats for consistency. | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -1/+2 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Code formatting (Black) | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -5/+5 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Lock tables in upsert fall-backs. | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -0/+2 |
| | | | | | | | | | | | | | | Should not be too much of a performance concern as this code won't be hit on Postgres, which large deployments should be using. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Apply minor suggestions from review | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -4/+3 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Clarify `_update_stats_delta_txn` by adding code comments and kwargs. | Olivier Wilkinson (reivilibre) | 2019-08-27 | 1 | -16/+18 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Apply suggestions from code review | reivilibre | 2019-08-27 | 1 | -2/+2 |
| | | | | | | Co-Authored-By: Erik Johnston <erik@matrix.org> | ||||
| * | Fix up historical stats support. | Olivier Wilkinson (reivilibre) | 2019-08-22 | 1 | -11/+32 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Simplify table structure | Olivier Wilkinson (reivilibre) | 2019-08-22 | 1 | -109/+171 |
| | | | | | | | | | | | | | | | | This obviates the need for old collection, but comes at the minor cost of not being able to track historical stats or per-slice fields until after the statistics regenerator is finished. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Clarify `_update_stats_delta_txn` | Olivier Wilkinson (reivilibre) | 2019-08-20 | 1 | -2/+15 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Sanitise accepted fields in `_update_stats_delta_txn` | Olivier Wilkinson (reivilibre) | 2019-08-20 | 1 | -0/+12 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
| * | Update synapse/storage/stats.py | reivilibre | 2019-08-20 | 1 | -1/+1 |
| | | | | | | Co-Authored-By: Erik Johnston <erik@matrix.org> | ||||
| * | Update synapse/storage/stats.py | reivilibre | 2019-08-20 | 1 | -1/+1 |
| | | | | | | Co-Authored-By: Erik Johnston <erik@matrix.org> | ||||
| * | Ack, isort! | Olivier Wilkinson (reivilibre) | 2019-08-20 | 1 | -1/+2 |
| | | | | | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
* | | Handle state deltas and turn them into stats deltas | Olivier Wilkinson (reivilibre) | 2019-08-20 | 1 | -1/+111 |
|/ | | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | ||||
* | Add storage function for storing stats deltas | Olivier Wilkinson (reivilibre) | 2019-08-20 | 1 | -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) | reivilibre | 2019-08-20 | 1 | -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 Hoff | 2019-07-24 | 1 | -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 Brown | 2019-07-23 | 1 | -8/+8 |
| | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -10/+24 |
| | |||||
* | Fix | Erik Johnston | 2019-06-03 | 1 | -1/+2 |
| | |||||
* | Ignore room state with null bytes in for room stats | Erik Johnston | 2019-06-03 | 1 | -0/+15 |
| | |||||
* | Add indices. Remove room_ids accidentally added | Erik Johnston | 2019-05-31 | 1 | -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 txn | Erik Johnston | 2019-05-30 | 1 | -2/+5 |
| | |||||
* | Fetch membership counts all at once | Erik Johnston | 2019-05-30 | 1 | -16/+7 |
| | |||||
* | Get events all at once | Erik Johnston | 2019-05-30 | 1 | -33/+26 |
| | |||||
* | Fix logging for room stats background update | Travis Ralston | 2019-05-25 | 1 | -1/+1 |
| | |||||
* | Room Statistics (#4338) | Amber Brown | 2019-05-21 | 1 | -0/+450 |