Commit Graph

447 Commits (7025781df8ab295848cb70a43d0ff8ca5949bc19)

Author SHA1 Message Date
Erik Johnston 2c29ed3e84 Use absolute path when loading delta sql files 10 years ago
Erik Johnston 1a989c436c Bump schema version 10 years ago
Erik Johnston 72a4de2ce6 Use consumeErrors=True on all DeferredLists. 10 years ago
David Baker 8d5cce62ab Update pushers by app id and pushkey, not user id and pushkey 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 717687e1fc Get an auth query one at a time 10 years ago
Erik Johnston 83d41f25d8 Set database schema version in delta 10 years ago
Erik Johnston 8bbdf32849 Convert get_rooms to use runInteraction so the transacion has a more helpful description 10 years ago
Erik Johnston 7eef84a95b pyflakes 10 years ago
Paul "LeoNerd" Evans 7f47ba7383 Added another TODO note 10 years ago
Paul "LeoNerd" Evans 45b56609ae Cache the result of a get_rooms_for_user query, to make user_rooms_intersect() much lighter in the read-common case 10 years ago
Paul "LeoNerd" Evans 7be0f6594e First step of making user_rooms_intersect() faster - implement in intersection logic in Python code terms of a DB query that is cacheable per user 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 aff892ce79 Fix formatting 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
Kegan Dougal fd40d992ad PEP8-ify 10 years ago
Mark Haines b085fac735 Code-style fixes 10 years ago
Mark Haines fda4422bc9 Fix pyflakes 10 years ago
Mark Haines d7c7efb691 Add performance counters for different stages of loading events 10 years ago
Mark Haines 0c4536da8f Use the transaction 'desc' rather than 'name', increment the txn_ids in 10 years ago
Mark Haines 347b497db0 Formatting 10 years ago
Mark Haines 3a5ad7dbd5 Performance counters for database transaction names 10 years ago
Erik Johnston c4ee4ce93e Fix typo 10 years ago
Erik Johnston 66fde49f07 Log database time every 10s and log as percentage 10 years ago
Erik Johnston 75656712e3 Time how long we're spending on the database thread 10 years ago
Kegan Dougal 5a7dd05818 Modify auth.get_user_by_req for authing appservices directly. 10 years ago
Kegan Dougal ac3183caaa Register a user account for the AS when the AS registers. Add 'sender' column to AS table. 10 years ago
Erik Johnston 0cd66885e3 Move delta/v13.sql to delta/v12.sql 10 years ago
Kegan Dougal a3c6010718 Add delta sql file. 10 years ago
David Baker aaf50bf6f3 Give server default rules the 'default' attribute and fix various brokenness. 10 years ago
Kegan Dougal 27091f146a Add hs_token column and generate a different token f.e application service. 10 years ago
Kegan Dougal 89f2e8fbdf Fix bug in store defer. Add more unit tests. 10 years ago
Kegan Dougal 17753f0c20 Add stub ApplicationServiceApi and glue it with the handler. 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
David Baker dc7bb70f22 s/instance_handle/profile_tag/ 10 years ago
Kegan Dougal 94a5db9f4d Add appservice package and move ApplicationService into it. 10 years ago
Kegan Dougal f2c039bfb9 Implement restricted namespace checks. Begin fleshing out the main hook for notifying application services. 10 years ago
Kegan Dougal a060b47b13 Add namespace constants. Add restrict_to option to limit namespace checks. 10 years ago
Kegan Dougal 3bd2841fdb Everyone loves SQL typos 10 years ago
Kegan Dougal 197f3ea4ba Implement regex checks for app services. 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 9ff349a3cb Add defers in the right places. 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