Commit Graph

263 Commits (ae6ff094941505064aeac48f4b911a45e83e6336)

Author SHA1 Message Date
Erik Johnston 7cd6a6f6cf Awful idea for speeding up fetching of events 10 years ago
Erik Johnston 386b7330d2 Move from _base to events 10 years ago
Erik Johnston 7d6a1dae31 Jump out early 10 years ago
Erik Johnston 656223fbd3 Actually, we probably want to run this in a transaction 10 years ago
Erik Johnston 2f7f8e1c2b Preemptively jump into a transaction if we ask for get_prev_content 10 years ago
Erik Johnston e1e9f0c5b2 loop -> gatherResults 10 years ago
Erik Johnston ab78a8926e Err, we probably want a bigger limit 10 years ago
Erik Johnston cdb3757942 Refactor _get_events 10 years ago
David Baker 7c549dd557 Add ID generator for push_rules_enable to #resolve SYN-378 10 years ago
Erik Johnston 968b01a91a Actually use async method 10 years ago
Erik Johnston 4071f29653 Fetch events from events_id in their own transactions 10 years ago
Erik Johnston a988361aea Typo 10 years ago
Erik Johnston 8888982db3 Don't insert None 10 years ago
Erik Johnston cf706cc6ef Don't return None 10 years ago
Erik Johnston 5971d240d4 Limit batch size 10 years ago
Erik Johnston ca4f458787 Fetch events in bulk 10 years ago
Erik Johnston 6edff11a88 Don't fetch redaction and rejection stuff for each event, so we can use index only scan 10 years ago
Erik Johnston 409bcc76bd Load events for state group seperately 10 years ago
Erik Johnston cd525c0f5a push_rules table expects an 'id' field 10 years ago
Erik Johnston 476899295f Change the way we do logging contexts so that they survive divergences 10 years ago
Mark Haines deb0237166 Add some doc-string 10 years ago
Mark Haines d18f37e026 Collect the invalidate callbacks on the transaction object rather than passing around a separate list 10 years ago
Erik Johnston 9951542393 Add a comment about the zip(*[zip(sorted(...),...)]) 10 years ago
Mark Haines 041b6cba61 SYN-369: Add comments to the sequence number logic in the cache 10 years ago
Mark Haines 63075118a5 Add debug flag in synapse/storage/_base.py for debugging the cache logic by comparing what is in the cache with what was in the database on every access 10 years ago
Erik Johnston 43c2e8deae Add support for using executemany 10 years ago
Erik Johnston 1692dc019d Don't call 'encode_parameter' no-op 10 years ago
Mark Haines 261d809a47 Sequence the modifications to the cache so that selects don't race with inserts 10 years ago
Erik Johnston 657298cebd Don't lock user_ips table for upsert. 10 years ago
Erik Johnston fabb7acd45 Fix bug where we reconnected to the database on every query. 10 years ago
Erik Johnston 2732be83d9 Shuffle operations so that locking upsert happens last in the txn. This ensures the lock is held for the least amount of time possible. 10 years ago
Erik Johnston e4c4664d73 Handle the fact that postgres databases can be restarted from under us 10 years ago
Erik Johnston b8092fbc82 Go back to storing JSON in TEXT 10 years ago
Erik Johnston 5b31afcbd1 Remove debug logging 10 years ago
Erik Johnston ed26e4012b pushers table requires a unique id. 10 years ago
Erik Johnston a5c72780e6 Don't pass in removed flag 10 years ago
Erik Johnston 4af32a2817 Postgres does not allow you to continue using a cursor after a DB exception has been raised, so move _simple_insert or_ignore flag out of transaction 10 years ago
Erik Johnston 58d8339966 Add support for postgres instead of mysql. Change sql accourdingly. blob + varbinary -> bytea. No support for UNSIGNED or CREATE INDEX IF NOT EXISTS. 10 years ago
Erik Johnston 7ed2ec3061 Handle the fact that in sqlite binary data might be stored as unicode or bytes 10 years ago
Erik Johnston 8ad0f4912e
Stream ordering and out of order insertions. 10 years ago
Erik Johnston c1b34af441 Move database timer logging to seperate logger 10 years ago
Erik Johnston 9a05795619 Retry transaction, not SQL query 10 years ago
Erik Johnston 49d6aa1394 Retry on deadlock 10 years ago
Erik Johnston 0af5f5efaf Don't use multiple UNIQUE constraints; it will cause deadlocks 10 years ago
Erik Johnston c8d3f6486d Implement or_ignore flag on inserts 10 years ago
Erik Johnston 304111afd0 Don't use AUTOINCREMENT, use an in memory version 10 years ago
Erik Johnston 779f7b0f44 Fix unicode support 10 years ago
Erik Johnston 9236136f3a Make work in both Maria and SQLite. Fix tests 10 years ago
Paul "LeoNerd" Evans a198894bf7 Appease pep8 10 years ago
Paul "LeoNerd" Evans 953e40f9dc Implement the main getEvent cache using Cache() instead of a custom application of LruCache; also unify its two-level structure into just one 10 years ago