- Jul 18, 2018
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
This introduces a mechanism for tracking resource usage by background processes, along with an example of how it will be used. This will help address #3518, but more importantly will give us better insights into things which are happening but not being shown up by the request metrics. We *could* do this with Measure blocks, but: - I think having them pulled out as a completely separate metric class will make it easier to distinguish top-level processes from those which are nested. - I want to be able to report on in-flight background processes, and I don't think we want to do this for *all* Measure blocks.
-
- Jul 17, 2018
-
-
Richard van der Hoff authored
Fix visibility of events from erased users over federation
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Refactor and optimze filter_events_for_server
-
Richard van der Hoff authored
-
Amber Brown authored
-
Erik Johnston authored
Fix perf regression in PR #3530
-
Richard van der Hoff authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
The get_entities_changed function was changed to return all changed entities since the given stream position, rather than only those changed from a given list of entities. This resulted in the function incorrectly returning large numbers of entities that, for example, caused large increases in database usage.
-
Amber Brown authored
Don't return unknown entities in get_entities_changed
-
Amber Brown authored
check isort by travis
-
- Jul 16, 2018
-
-
Krombel authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Krombel authored
-
Richard van der Hoff authored
for easier unit testing.
-
Krombel authored
-
- Jul 13, 2018
-
-
Amber Brown authored
-
Amber Brown authored
Use parse and asserts from http.servlet
-
Amber Brown authored
-
Amber Brown authored
-
Krombel authored
-
Krombel authored
the method "assert_params_in_request" does handle dicts and not requests. A request body has to be parsed to json before this method can be used
-
Krombel authored
parse_integer and parse_string can take a request and raise errors in case we have wrong or missing params. This PR tries to use them more to deduplicate some code and make it better readable
-
Erik Johnston authored
-
Richard van der Hoff authored
Make FederationRateLimiter queue requests properly
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
popitem removes the *most recent* item by default [1]. We want the oldest. Fixes #3524 [1]: https://docs.python.org/2/library/collections.html#collections.OrderedDict.popitem
-
Erik Johnston authored
-
Erik Johnston authored
The stream cache keeps track of all entities that have changed since a particular stream position, so get_entities_changed does not need to return unknown entites when given a larger stream position. This makes it consistent with the behaviour of has_entity_changed.
-
Matthew Hodgson authored
-