Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Speed up chain cover calculation (#9176) | Erik Johnston | 2021-01-21 | 1 | -55/+144 |
| | |||||
* | Use execute_batch instead of executemany in places (#9181) | Erik Johnston | 2021-01-21 | 1 | -9/+9 |
| | | | `execute_batch` does fewer round trips in postgres than `executemany`, but does not give a correct `txn.rowcount` result after. | ||||
* | Fix chain cover background update to work with split out event persisters ↵ | Erik Johnston | 2021-01-14 | 1 | -23/+13 |
| | | | | (#9115) | ||||
* | Add background update for add chain cover index (#9029) | Erik Johnston | 2021-01-14 | 1 | -14/+36 |
| | |||||
* | Use a chain cover index to efficiently calculate auth chain difference (#8868) | Erik Johnston | 2021-01-11 | 1 | -16/+519 |
| | |||||
* | Ensure rejected events get added to some metadata tables (#9016) | Erik Johnston | 2021-01-11 | 1 | -24/+25 |
| | | | Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> | ||||
* | Remove frozendict_json_encoder and support frozendicts everywhere | Richard van der Hoff | 2020-10-28 | 1 | -6/+4 |
| | | | | | | Not being able to serialise `frozendicts` is fragile, and it's annoying to have to think about which serialiser you want. There's no real downside to supporting frozendicts, so let's just have one json encoder. | ||||
* | Replace DeferredCache with LruCache where possible (#8563) | Richard van der Hoff | 2020-10-19 | 1 | -3/+1 |
| | | | Most of these uses don't need a full-blown DeferredCache; LruCache is lighter and more appropriate. | ||||
* | Make sure a retention policy is a state event (#8527) | Brendan Abolivier | 2020-10-14 | 1 | -0/+4 |
| | | | | | * Make sure a retention policy is a state event * Changelog | ||||
* | Fix message duplication if something goes wrong after persisting the event ↵ | Erik Johnston | 2020-10-13 | 1 | -0/+31 |
| | | | | | (#8476) Should fix #3365. | ||||
* | Only send RDATA for instance local events. (#8496) | Erik Johnston | 2020-10-09 | 1 | -5/+7 |
| | | | | | When pulling events out of the DB to send over replication we were not filtering by instance name, and so we were sending events for other instances. | ||||
* | Remove stream ordering from Metadata dict (#8452) | Richard van der Hoff | 2020-10-05 | 1 | -0/+4 |
| | | | | | | | | There's no need for it to be in the dict as well as the events table. Instead, we store it in a separate attribute in the EventInternalMetadata object, and populate that on load. This means that we can rely on it being correctly populated for any event which has been persited to the database. | ||||
* | Enable mypy checking for unreachable code and fix instances. (#8432) | Patrick Cloke | 2020-10-01 | 1 | -13/+5 |
| | |||||
* | Fix bug which caused failure on join with malformed membership events (#8385) | Richard van der Hoff | 2020-09-23 | 1 | -3/+7 |
| | |||||
* | Use `async with` for ID gens (#8383) | Erik Johnston | 2020-09-23 | 1 | -3/+3 |
| | | | This will allow us to hit the DB after we've finished using the generated stream ID. | ||||
* | Add experimental support for sharding event persister. Again. (#8294) | Erik Johnston | 2020-09-14 | 1 | -4/+8 |
| | | | | | | This is *not* ready for production yet. Caveats: 1. We should write some tests... 2. The stream token that we use for events can get stalled at the minimum position of all writers. This means that new events may not be processed and e.g. sent down sync streams if a writer isn't writing or is slow. | ||||
* | Make `StreamToken.room_key` be a `RoomStreamToken` instance. (#8281) | Erik Johnston | 2020-09-11 | 1 | -6/+15 |
| | |||||
* | Revert "Add experimental support for sharding event persister. (#8170)" (#8242) | Brendan Abolivier | 2020-09-04 | 1 | -3/+1 |
| | | | | | | | * Revert "Add experimental support for sharding event persister. (#8170)" This reverts commit 82c1ee1c22a87b9e6e3179947014b0f11c0a1ac3. * Changelog | ||||
* | Re-implement unread counts (again) (#8059) | Brendan Abolivier | 2020-09-02 | 1 | -2/+2 |
| | |||||
* | Add experimental support for sharding event persister. (#8170) | Erik Johnston | 2020-09-02 | 1 | -1/+3 |
| | | | | | | This is *not* ready for production yet. Caveats: 1. We should write some tests... 2. The stream token that we use for events can get stalled at the minimum position of all writers. This means that new events may not be processed and e.g. sent down sync streams if a writer isn't writing or is slow. | ||||
* | Make StreamIdGen `get_next` and `get_next_mult` async (#8161) | Erik Johnston | 2020-08-25 | 1 | -2/+2 |
| | | | | This is mainly so that `StreamIdGenerator` and `MultiWriterIdGenerator` will have the same interface, allowing them to be used interchangeably. | ||||
* | Convert receipts and events databases to async/await. (#8076) | Patrick Cloke | 2020-08-14 | 1 | -19/+14 |
| | |||||
* | Revert #7736 (#8039) | Brendan Abolivier | 2020-08-06 | 1 | -47/+1 |
| | |||||
* | Rename database classes to make some sense (#8033) | Erik Johnston | 2020-08-05 | 1 | -0/+1527 |