Commit Graph

273 Commits (363786845b728bcd7146b3d949a86021a96eb2d2)

Author SHA1 Message Date
Paul "LeoNerd" Evans ebc3db295b Take named arguments to @cached() decorator, add a 'max_entries' limit 10 years ago
Paul "LeoNerd" Evans 077d200342 Move @cached decorator out into synapse.storage._base; add minimal docs 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
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
Erik Johnston 2f4cb04f45 Be more specific in naming columns in selects. 10 years ago
David Baker 6d485dd1c7 unnecessary newlines 10 years ago
David Baker fb0928097a More magic commas (including the place I copied it from...) 10 years ago
David Baker 0cbb6b0f52 Google doc style 10 years ago
Erik Johnston b1b85753d7 Add support for storing rejected events in EventContext and data stores 10 years ago
Erik Johnston 82be4457de Add twisted Service interface 10 years ago
Erik Johnston 36a2a877e2 Use time.time() instead of time.clock() 10 years ago
Erik Johnston 52b2c6c9c7 Don't include None's in _get_events_txn 10 years ago
Mark Haines adb04b1e57 Update copyright notices 10 years ago
Erik Johnston af1c7c7808 PEP8 10 years ago
Erik Johnston 52d8519008 Don't do batching when getting events. 10 years ago
Erik Johnston 98933e3db6 Only fetch prev_content when a client is streaming/paginating. Use transactions for event streams. 10 years ago
Erik Johnston 3e26720e05 Temporarily turn off 'redacted_because' and 'prev_content' keys 10 years ago
Erik Johnston f4ea78e9e2 More debug logging 10 years ago
Erik Johnston d7e8ea67b3 Reformat 10 years ago
David Baker 9728c305a3 after a few rethinks, a working implementation of pushers. 10 years ago
Erik Johnston f3788e3c78 Test some ideas that might help performance a bit 10 years ago
Erik Johnston 5b39cfff69 Don't assume an event exists 10 years ago
Erik Johnston 882dc8dcab Persist internal_metadata 10 years ago
Erik Johnston c8dd3314d6 Fix bug where we ignored event_edge_hashes table 10 years ago
Erik Johnston 75085bb4d1 Pyflakes 10 years ago
Erik Johnston 0b04369238 Fix public room joining by making sure replaces_state never points to itself. 10 years ago
Erik Johnston 9191292b0f Fix prev_content 10 years ago
Erik Johnston 8cdebce470 Fix redactions. Fix 'age' key 10 years ago
Erik Johnston 02e4c18171 Remove dead code 10 years ago
Erik Johnston aa3f66cf7f Change the way we implement get_events to be less sucky 10 years ago
Erik Johnston ba3d1e2fc0 Remove unused import 10 years ago
Matthew Hodgson aed62a3583 track replication destination health, and perform exponential back-off when sending transactions. does *not* yet retry transactions, but drops them on the floor if waiting for a server to recover. 10 years ago
Erik Johnston 6630e1b579 Start making more things use EventContext rather than event.* 10 years ago
Erik Johnston ec2b5d8c28 Store full JSON of events in db 10 years ago
Erik Johnston a46e5ef621 SYN-163: Add an order by rowid to selects. 10 years ago
Mark Haines db9ce032a4 Fix pep8 codestyle warnings 10 years ago
Mark Haines dfdda2c871 Use module loggers rather than the root logger. Exceptions caused by bad clients shouldn't cause ERROR level logging. Fix sql logging to use 'repr' rather than 'str' 10 years ago
Mark Haines 32090aee16 Add a few missing yields, Move deferred lists inside PreserveLoggingContext because they don't interact well with the logging contexts 10 years ago
Mark Haines cb4b6c844a Merge PDUs and Events into one object 10 years ago
Erik Johnston f04b3d5042 Store all signatures on events rather than just dropping them 10 years ago