Commit Graph

203 Commits (6e7131f02f33695b6423db9a377f130ffebbdb67)

Author SHA1 Message Date
Erik Johnston dc0c989ef4 Give sensible names for '_simple_...' transactions 10 years ago
Paul "LeoNerd" Evans ceb61daa70 Add the tiniest of tiny one-element caches to get_room_events_max_id() as it's read every time someone hits eventstream 10 years ago
Erik Johnston 87db64b839 Rearrange storage modules 10 years ago
Erik Johnston cb8162d3d1 Rearrange storage modules 10 years ago
Erik Johnston d7a0496f3e Convert storage layer to be mysql compatible 10 years ago
Paul "LeoNerd" Evans 59a5f012cc Also give _execute() a description 10 years ago
Paul "LeoNerd" Evans 099e4b88d8 Add a description to storage layer's _execute_and_decode() 10 years ago
David Baker 8916acbc13 These aren't defined for redacted events so don't crash 10 years ago
Erik Johnston d56c01fff4 Note that we don't specify execution order 10 years ago
Erik Johnston 17d319a20d s/schema_deltas/applied_schema_deltas/ 10 years ago
Erik Johnston 5681264faa s/%r/%s/ 10 years ago
Erik Johnston f701197227 Add example directory structures in doc 10 years ago
Erik Johnston 16dd87d848 Don't assume db conn is a Context Manager. 10 years ago
Erik Johnston 5eefd1f618 Add unique constraint on schema_version.lock schema. Use conflict clause in sql. 10 years ago
Erik Johnston 640e53935d Use context manager with db conn to correctly commit and rollback 10 years ago
Erik Johnston c3530c3fb3 More docs. Rename 'schema/current' to 'schema/full_schemas' 10 years ago
Erik Johnston 811355ccd0 Add some docs and remove unused variables 10 years ago
Erik Johnston 82b34e813d SYN-67: Finish up implementing new database schema management 10 years ago
Erik Johnston 8d33adfbbb SYN-67: Begin changing the way we handle schema versioning 10 years ago
Erik Johnston 9f03553f48 Add missing comma 10 years ago
Erik Johnston b41dc68773 We purposefully don't have a version 14 delta script. 10 years ago
Kegan Dougal c3c01641d2 Run deltas and bump user_version in upgrade script 10 years ago
Erik Johnston 2c29ed3e84 Use absolute path when loading delta sql files 10 years ago
Erik Johnston 1a989c436c Bump schema version 10 years ago
Mark Haines 183b3d4e47 Prepare the database whenever a connection is opened from the db_pool so that in-memory databases will work 10 years ago
Erik Johnston 7eef84a95b pyflakes 10 years ago
Erik Johnston ddb816cf60 Don't unfreeze when using FreezeEvent.get_dict, as we are using a JSONEncoder that understands FrozenDict 10 years ago
Mark Haines ddc25cf4e2 Invalidate the cache for an event if it is redacted 10 years ago
Mark Haines f5a70e0d2e Add a cache for get_event 10 years ago
Erik Johnston 4ebbaf0d43 Blunty replace json with simplejson 10 years ago
Erik Johnston 03d415a6a2 Brief comment on why we do some things on every call to persist_event and not others 10 years ago
Erik Johnston c0462dbf15 Rearrange persist_event so that do all the queries that need to be done before returning early if we have already persisted that event. 10 years ago
Erik Johnston 02be8da5e1 Add doc to get_event 10 years ago
Erik Johnston e7ca813dd4 Try to ensure we don't persist an event we have already persisted. In persist_event check if we already have the event, if so then update instead of replacing so that we don't cause a bump of the stream_ordering. 10 years ago
Kegan Dougal 1a2de0c5fe Implement txns for AS (un)registration. 10 years ago
Erik Johnston 941f59101b Don't fail an entire request if one of the returned events fails a signature check. If an event does fail a signature check, look in the local database and request it from the originator. 10 years ago
Kegan Dougal a006d168c5 Actually merge into develop. 10 years ago
Erik Johnston 91015ad008 Remove merge conflict 10 years ago
Erik Johnston 4f7fe63b6d Remember to add schema file to list 10 years ago
David Baker 322a047502 Add room member count condition and default rule to make a noise on rooms of only 2 people. 10 years ago
David Baker 60b143a52e Move pushers delta to v12 and bump schema version 10 years ago
Kegan Dougal 42876969b9 Add basic application_services SQL, and hook up parts of the appservice store to read from it. 10 years ago
Paul "LeoNerd" Evans 8398f19bce Created schema delta 10 years ago
Paul "LeoNerd" Evans 06cc147012 Initial stab at real SQL storage implementation of user filter definitions 10 years ago
Paul "LeoNerd" Evans 54e513b4e6 Move storage of user filters into real datastore layer; now have to mock it out in the REST-level tests 10 years ago
Kegan Dougal 51449e0665 Add appservice handler and store. Glue together rest > handler > store. 10 years ago
David Baker 69a75b7ebe Add brackets to make get room name / alias work 10 years ago
Erik Johnston 7b88619241 Split up replication_layer module into client, server and transaction queue 10 years ago
Erik Johnston 3b9cc882a5 Add storage method have_events 10 years ago
David Baker 673773b217 oops, this is not its own schema file 10 years ago