Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Up default cache size for _RoomStreamChangeCache | Matrix | 2015-07-18 | 1 | -1/+1 |
| | |||||
* | Merge pull request #199 from matrix-org/erikj/receipts | Erik Johnston | 2015-07-16 | 5 | -3/+396 |
|\ | | | | | Implement read receipts. | ||||
| * | Docs | Erik Johnston | 2015-07-14 | 1 | -3/+28 |
| | | |||||
| * | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/receipts | Erik Johnston | 2015-07-13 | 5 | -21/+253 |
| |\ | |||||
| * | | Comments | Erik Johnston | 2015-07-13 | 1 | -0/+11 |
| | | | |||||
| * | | Handle error slightly better | Erik Johnston | 2015-07-09 | 1 | -2/+2 |
| | | | |||||
| * | | Change format of receipts to allow inclusion of data | Erik Johnston | 2015-07-09 | 2 | -29/+26 |
| | | | |||||
| * | | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/receipts | Erik Johnston | 2015-07-08 | 1 | -2/+4 |
| |\ \ | |||||
| * | | | Add a cache to fetching of receipt streams | Erik Johnston | 2015-07-08 | 1 | -3/+89 |
| | | | | |||||
| * | | | Hook up receipts to v1 initialSync | Erik Johnston | 2015-07-08 | 1 | -9/+20 |
| | | | | |||||
| * | | | Wire together receipts and the notifer/federation | Erik Johnston | 2015-07-07 | 1 | -9/+60 |
| | | | | |||||
| * | | | Fix various typos | Erik Johnston | 2015-07-07 | 2 | -6/+10 |
| | | | | |||||
| * | | | Add stream_id index | Erik Johnston | 2015-07-02 | 1 | -1/+5 |
| | | | | |||||
| * | | | Add basic storage functions for handling of receipts | Erik Johnston | 2015-07-01 | 4 | -17/+186 |
| | | | | |||||
| * | | | Add tables for receipts | Erik Johnston | 2015-06-30 | 2 | -1/+36 |
| | | | | |||||
* | | | | Merge pull request #193 from matrix-org/erikj/bulk_persist_event | Erik Johnston | 2015-07-14 | 6 | -270/+382 |
|\ \ \ \ | |_|_|/ |/| | | | Add bulk insert events API | ||||
| * | | | Remove commented out code | Erik Johnston | 2015-07-10 | 1 | -14/+0 |
| | | | | |||||
| * | | | Add bulk insert events API | Erik Johnston | 2015-06-25 | 6 | -268/+394 |
| |/ / | |||||
* | | | Merge pull request #196 from matrix-org/erikj/room_history | Erik Johnston | 2015-07-10 | 1 | -2/+61 |
|\ \ \ | | | | | | | | | Add ability to restrict room history. | ||||
| * | | | Add basic impl for room history ACL on GET /messages client API | Erik Johnston | 2015-07-02 | 1 | -2/+61 |
| |/ / | |||||
* | | | Merge pull request #194 from matrix-org/erikj/bulk_verify_sigs | Erik Johnston | 2015-07-10 | 1 | -19/+31 |
|\ \ \ | | | | | | | | | Implement bulk verify_signed_json API | ||||
| * | | | Implement bulk verify_signed_json API | Erik Johnston | 2015-06-26 | 1 | -19/+31 |
| |/ / | |||||
* | | | Uniquely name unique constraint | Erik Johnston | 2015-07-10 | 1 | -2/+2 |
| | | | |||||
* | | | Don't bother with a timeout for one time keys on the server. | Mark Haines | 2015-07-09 | 2 | -15/+6 |
| | | | |||||
* | | | Only remove one time keys when new one time keys are added | Mark Haines | 2015-07-08 | 1 | -7/+7 |
| | | | |||||
* | | | Add store for client end to end keys | Mark Haines | 2015-07-06 | 3 | -1/+171 |
| |/ |/| | |||||
* | | Don't explode if we don't recognize one of the event_ids in the backfill request | Erik Johnston | 2015-07-06 | 1 | -2/+4 |
|/ | |||||
* | Batch SELECTs in _get_auth_chain_ids_txn | Erik Johnston | 2015-06-23 | 1 | -3/+11 |
| | |||||
* | Add a dummy.sql into delta/20 as pip isn't packinging the pushers.py | Erik Johnston | 2015-06-13 | 1 | -0/+1 |
| | |||||
* | Bump schema version | Erik Johnston | 2015-06-11 | 1 | -1/+1 |
| | |||||
* | pep8 | David Baker | 2015-06-04 | 1 | -1/+0 |
| | |||||
* | Add script to (re)convert the pushers table to changing the unique key. Also ↵ | David Baker | 2015-06-04 | 3 | -2/+79 |
| | | | | give the python db upgrade scripts the database engine so they can convert parameter strings, and add *args **kwargs to the upgrade function so we can add more args in future and previous scripts will ignore them. | ||||
* | Add cache to get_state_groups | Erik Johnston | 2015-06-03 | 1 | -8/+12 |
| | |||||
* | Caches should be bound to instances. | Erik Johnston | 2015-06-03 | 1 | -14/+31 |
| | | | | | Before, caches were global and so different instances of the stores would share caches. This caused problems in the unit tests. | ||||
* | Don't explode if we don't have the event | Erik Johnston | 2015-06-01 | 1 | -1/+3 |
| | |||||
* | Add config option to turn off freezing events. Use new encode_json api and ↵ | Erik Johnston | 2015-05-29 | 1 | -10/+13 |
| | | | | ujson.loads | ||||
* | Merge pull request #163 from matrix-org/markjh/presence_list_cache | Mark Haines | 2015-05-22 | 1 | -8/+27 |
|\ | | | | | Add a cache for the presence list | ||||
| * | Add a cache for getting the presence list for a user | Mark Haines | 2015-05-22 | 1 | -8/+27 |
| | | |||||
* | | Merge pull request #164 from matrix-org/markjh/pusher_performance_2 | Mark Haines | 2015-05-22 | 1 | -1/+17 |
|\ \ | | | | | | | Add a cache for get_push rules for user, fix cache invalidation | ||||
| * | | Add a cache for get_push rules for user, fix cache invalidation | Mark Haines | 2015-05-22 | 1 | -1/+17 |
| | | | |||||
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2015-05-22 | 7 | -16/+67 |
|\ \ \ | | |/ | |/| | | | | erikj/backfill_fixes | ||||
| * | | Merge pull request #156 from matrix-org/erikj/join_perf | Mark Haines | 2015-05-22 | 1 | -2/+3 |
| |\ \ | | | | | | | | | Make joining #matrix:matrix.org over federation quicker | ||||
| * | | | Invalidate the get_latest_event_ids_in_room cache when deleting from ↵ | Mark Haines | 2015-05-22 | 1 | -0/+1 |
| | |/ | |/| | | | | | | | event_forward_extremities | ||||
| * | | Merge branch 'master' of github.com:matrix-org/synapse into develop | Erik Johnston | 2015-05-22 | 6 | -16/+66 |
| |\ \ | |||||
| | * | | Don't try to use a txn when not in one, remove spurious debug logging | Mark Haines | 2015-05-21 | 1 | -3/+1 |
| | | | | |||||
| | * | | Add caches for things requested by the pushers | Mark Haines | 2015-05-21 | 5 | -15/+33 |
| | | | | |||||
| | * | | Add a cache for get_current_state with state_key | Mark Haines | 2015-05-21 | 3 | -1/+35 |
| | | | | |||||
* | | | | Actually return something from lambda | Erik Johnston | 2015-05-21 | 1 | -1/+1 |
| | | | | |||||
* | | | | Sort backfill events | Erik Johnston | 2015-05-21 | 1 | -1/+5 |
| | | | | |||||
* | | | | Remove dead code | Erik Johnston | 2015-05-21 | 1 | -5/+0 |
| | | | | |||||
* | | | | Only get non-state | Erik Johnston | 2015-05-21 | 1 | -1/+2 |
| | | | | |||||
* | | | | Skip events we've already seen | Erik Johnston | 2015-05-21 | 1 | -0/+3 |
| | | | | |||||
* | | | | Correctly prepopulate queue | Erik Johnston | 2015-05-21 | 1 | -2/+10 |
| | | | | |||||
* | | | | Don't prepopulate event_results | Erik Johnston | 2015-05-21 | 1 | -1/+1 |
| | | | | |||||
* | | | | Don't readd things that are already in event_results | Erik Johnston | 2015-05-21 | 1 | -1/+2 |
| | | | | |||||
* | | | | PriorityQueue gives lowest first | Erik Johnston | 2015-05-21 | 1 | -2/+2 |
| | | | | |||||
* | | | | Correctly capture Queue.Empty exception | Erik Johnston | 2015-05-21 | 1 | -2/+5 |
| | | | | |||||
* | | | | Merge branch 'erikj/join_perf' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2015-05-21 | 10 | -181/+544 |
|\ \ \ \ | | |_|/ | |/| | | | | | | erikj/backfill_fixes | ||||
| * | | | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/join_perf | Erik Johnston | 2015-05-21 | 10 | -181/+544 |
| |\| | | |||||
| | * | | Merge pull request #155 from matrix-org/erikj/perf | Erik Johnston | 2015-05-21 | 10 | -181/+544 |
| | |\ \ | | | | | | | | | | | Bulk and batch retrieval of events. | ||||
| | | * | | s/for events/for requests for events/ | Erik Johnston | 2015-05-21 | 1 | -1/+1 |
| | | | | | |||||
| | | * | | s/for events/for requests for events/ | Erik Johnston | 2015-05-21 | 1 | -1/+1 |
| | | | | | |||||
| | | * | | Add comments | Erik Johnston | 2015-05-21 | 1 | -3/+14 |
| | | | | | |||||
| | | * | | Split up _get_events into defer and txn versions | Erik Johnston | 2015-05-20 | 1 | -24/+35 |
| | | | | | |||||
| | | * | | Make not return a deferred _get_event_from_row_txn | Erik Johnston | 2015-05-20 | 1 | -20/+5 |
| | | | | | |||||
| | | * | | PEP8 | Erik Johnston | 2015-05-20 | 1 | -2/+2 |
| | | | | | |||||
| | | * | | Split out _get_event_from_row back into defer and _txn version | Erik Johnston | 2015-05-20 | 1 | -11/+57 |
| | | | | | |||||
| | | * | | Comments and shuffle of functions | Erik Johnston | 2015-05-18 | 1 | -38/+42 |
| | | | | | |||||
| | | * | | Remove unused metric | Erik Johnston | 2015-05-18 | 1 | -1/+0 |
| | | | | | |||||
| | | * | | Remove rejected events if we don't want rejected events | Erik Johnston | 2015-05-18 | 1 | -0/+3 |
| | | | | | |||||
| | | * | | Newline, remove debug logging | Erik Johnston | 2015-05-18 | 2 | -2/+1 |
| | | | | | |||||
| | | * | | PEP8 | Erik Johnston | 2015-05-15 | 2 | -2/+1 |
| | | | | | |||||
| | | * | | Revert limiting of fetching, it didn't help perf. | Erik Johnston | 2015-05-15 | 1 | -9/+2 |
| | | | | | |||||
| | | * | | init j | Erik Johnston | 2015-05-15 | 1 | -0/+1 |
| | | | | | |||||
| | | * | | Don't completely drain the list | Erik Johnston | 2015-05-15 | 1 | -2/+9 |
| | | | | | |||||
| | | * | | Don't fetch prev_content for current_state | Erik Johnston | 2015-05-15 | 1 | -1/+1 |
| | | | | | |||||
| | | * | | Make store.get_current_state fetch events asyncly | Erik Johnston | 2015-05-15 | 2 | -4/+4 |
| | | | | | |||||
| | | * | | Remove more debug logging | Erik Johnston | 2015-05-15 | 1 | -2/+0 |
| | | | | | |||||
| | | * | | Remove debug logging | Erik Johnston | 2015-05-15 | 1 | -11/+3 |
| | | | | | |||||
| | | * | | preserve log context | Erik Johnston | 2015-05-15 | 1 | -1/+2 |
| | | | | | |||||
| | | * | | Add a wait | Erik Johnston | 2015-05-15 | 2 | -3/+12 |
| | | | | | |||||
| | | * | | Srsly. Don't use closures. Baaaaaad | Erik Johnston | 2015-05-15 | 1 | -10/+8 |
| | | | | | |||||
| | | * | | Correctly pass through params | Erik Johnston | 2015-05-15 | 1 | -3/+3 |
| | | | | | |||||
| | | * | | Sort out error handling | Erik Johnston | 2015-05-15 | 1 | -25/+22 |
| | | | | | |||||
| | | * | | Fix daedlock | Erik Johnston | 2015-05-15 | 3 | -68/+85 |
| | | | | | |||||
| | | * | | Remove race condition | Erik Johnston | 2015-05-14 | 4 | -96/+157 |
| | | | | | |||||
| | | * | | Call from right thread | Erik Johnston | 2015-05-14 | 1 | -1/+3 |
| | | | | | |||||
| | | * | | Count and loop | Erik Johnston | 2015-05-14 | 2 | -37/+35 |
| | | | | | |||||
| | | * | | Don't start up more fetch_events | Erik Johnston | 2015-05-14 | 1 | -0/+1 |
| | | | | | |||||
| | | * | | Awful idea for speeding up fetching of events | Erik Johnston | 2015-05-14 | 2 | -36/+135 |
| | | | | | |||||
| | | * | | Turn off preemptive transactions | Erik Johnston | 2015-05-14 | 1 | -17/+7 |
| | | | | | |||||
| | | * | | PEP8 | Erik Johnston | 2015-05-14 | 1 | -2/+1 |
| | | | | | |||||
| | | * | | Move from _base to events | Erik Johnston | 2015-05-14 | 2 | -232/+247 |
| | | | | | |||||
| | | * | | Jump out early | Erik Johnston | 2015-05-14 | 1 | -0/+6 |
| | | | | | |||||
| | | * | | Actually, we probably want to run this in a transaction | Erik Johnston | 2015-05-14 | 1 | -15/+12 |
| | | | | | |||||
| | | * | | Preemptively jump into a transaction if we ask for get_prev_content | Erik Johnston | 2015-05-14 | 1 | -12/+22 |
| | | | | | |||||
| | | * | | loop -> gatherResults | Erik Johnston | 2015-05-14 | 1 | -10/+14 |
| | | | | | |||||
| | | * | | Err, we probably want a bigger limit | Erik Johnston | 2015-05-14 | 1 | -1/+1 |
| | | | | | |||||
| | | * | | Move fetching of events into their own transactions | Erik Johnston | 2015-05-14 | 4 | -53/+45 |
| | | | | | |||||
| | | * | | Refactor _get_events | Erik Johnston | 2015-05-14 | 2 | -253/+95 |
| | | | | | |||||
| | | * | | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/perf | Erik Johnston | 2015-05-14 | 2 | -2/+13 |
| | | |\ \ | |||||
| | | * | | | Add index on events | Erik Johnston | 2015-05-13 | 2 | -1/+20 |
| | | | | | | |||||
| | | * | | | Actually use async method | Erik Johnston | 2015-05-13 | 1 | -3/+1 |
| | | | | | | |||||
| | | * | | | Fetch events from events_id in their own transactions | Erik Johnston | 2015-05-13 | 3 | -18/+168 |
| | | | | | | |||||
| | | * | | | Typo | Erik Johnston | 2015-05-13 | 1 | -1/+1 |
| | | | | | | |||||
| | | * | | | Don't insert None | Erik Johnston | 2015-05-13 | 1 | -1/+4 |
| | | | | | | |||||
| | | * | | | Don't return None | Erik Johnston | 2015-05-13 | 1 | -1/+1 |
| | | | | | | |||||
| | | * | | | Limit batch size | Erik Johnston | 2015-05-13 | 1 | -5/+10 |
| | | | | | | |||||
| | | * | | | Fetch events in bulk | Erik Johnston | 2015-05-13 | 2 | -34/+63 |
| | | | | | | |||||
| | | * | | | Don't fetch redaction and rejection stuff for each event, so we can use ↵ | Erik Johnston | 2015-05-13 | 2 | -6/+24 |
| | | | | | | | | | | | | | | | | | | | | | | | | index only scan | ||||
| | | * | | | Temp turn off checking for rejections and redactions | Erik Johnston | 2015-05-13 | 1 | -5/+2 |
| | | | | | | |||||
| | | * | | | defer.gatherResults loop | Erik Johnston | 2015-05-13 | 1 | -1/+7 |
| | | | | | | |||||
| | | * | | | Batch fetching of events for state groups | Erik Johnston | 2015-05-13 | 1 | -1/+24 |
| | | | | | | |||||
| | | * | | | Load events for state group seperately | Erik Johnston | 2015-05-13 | 2 | -5/+11 |
| | | | | | | |||||
* | | | | | | Fix _get_backfill_events to return events in the correct order | Erik Johnston | 2015-05-20 | 1 | -27/+28 |
| | | | | | | |||||
* | | | | | | Ensure event_results is a set | Erik Johnston | 2015-05-19 | 1 | -1/+1 |
|/ / / / / | |||||
* / / / / | Fix event_backwards_extrem insertion to ignore outliers | Erik Johnston | 2015-05-19 | 1 | -2/+3 |
|/ / / / | |||||
* | | | | Merge pull request #152 from matrix-org/notifier_performance | Mark Haines | 2015-05-18 | 1 | -0/+3 |
|\ \ \ \ | | | | | | | | | | | Notifier performance | ||||
| * \ \ \ | Merge branch 'develop' into notifier_performance | Mark Haines | 2015-05-18 | 2 | -2/+13 |
| |\ \ \ \ | | | |/ / | | |/| | | |||||
| * | | | | Merge branch 'notifier_unify' into notifier_performance | Mark Haines | 2015-05-14 | 1 | -0/+1 |
| |\ \ \ \ | | | |/ / | | |/| | | |||||
| * | | | | Don't bother checking for updates if the stream token hasn't advanced for a user | Mark Haines | 2015-05-13 | 1 | -0/+3 |
| | | | | | |||||
* | | | | | Move get_events functions to storage.events | Erik Johnston | 2015-05-18 | 2 | -155/+132 |
| |_|/ / |/| | | | |||||
* | | | | Add ID generator for push_rules_enable to #resolve SYN-378 | David Baker | 2015-05-14 | 2 | -2/+13 |
| |/ / |/| | | |||||
* | | | You need to call contextmanager | Erik Johnston | 2015-05-12 | 1 | -0/+1 |
|/ / | |||||
* | | Merge pull request #144 from matrix-org/erikj/logging_context | Mark Haines | 2015-05-12 | 1 | -5/+6 |
|\ \ | | | | | | | Preserving logging contexts | ||||
| * \ | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2015-05-12 | 6 | -82/+115 |
| |\ \ | | | | | | | | | | | | | erikj/logging_context | ||||
| * | | | Change the way we do logging contexts so that they survive divergences | Erik Johnston | 2015-05-08 | 1 | -5/+6 |
| | | | | |||||
* | | | | Merge pull request #149 from matrix-org/erikj/backfill | Mark Haines | 2015-05-12 | 3 | -116/+103 |
|\ \ \ \ | |_|/ / |/| | | | Backfill support | ||||
| * | | | Err, delete the right stuff | Erik Johnston | 2015-05-12 | 1 | -4/+5 |
| | | | | |||||
| * | | | Newlines | Erik Johnston | 2015-05-12 | 1 | -2/+0 |
| | | | | |||||
| * | | | We do actually want to delete rows out of event_backward_extremities | Erik Johnston | 2015-05-12 | 1 | -4/+11 |
| | | | | |||||
| * | | | Fix up _handle_prev_events to not try to insert duplicate rows | Erik Johnston | 2015-05-12 | 1 | -23/+13 |
| | | | | |||||
| * | | | Do state groups persistence /after/ checking if we have already persisted ↵ | Erik Johnston | 2015-05-12 | 1 | -6/+9 |
| | | | | | | | | | | | | | | | | the event | ||||
| * | | | Make get_current_token accept a direction parameter, which tells whether the ↵ | Erik Johnston | 2015-05-12 | 1 | -2/+18 |
| | | | | | | | | | | | | | | | | source whether we want a token for going 'forwards' or 'backwards' | ||||
| * | | | Initial hack at wiring together pagination and backfill | Erik Johnston | 2015-05-11 | 1 | -2/+26 |
| | | | | |||||
| * | | | Move storage.stream._StreamToken to types.RoomStreamToken | Erik Johnston | 2015-05-11 | 1 | -85/+33 |
| | |/ | |/| | |||||
* / | | SYN-377: Make sure that the StreamIdGenerator.get_next.__exit__ is called ↵ | Mark Haines | 2015-05-12 | 2 | -23/+27 |
|/ / | | | | | | | from the main thread after the transaction completes, not from database thread before the transaction completes. | ||||
* | | Prefer to use _simple_*. | Erik Johnston | 2015-05-11 | 1 | -44/+41 |
| | | |||||
* | | push_rules table expects an 'id' field | Erik Johnston | 2015-05-11 | 2 | -13/+13 |
| | | |||||
* | | Fix push rule bug: can't insert bool into small int column | Erik Johnston | 2015-05-10 | 1 | -1/+1 |
| | | |||||
* | | Drop the old table not the new table | Mark Haines | 2015-05-08 | 1 | -1/+1 |
| | | |||||
* | | Rename unique constraint | Mark Haines | 2015-05-08 | 1 | -1/+1 |
| | | |||||
* | | Remove unsigned | Mark Haines | 2015-05-08 | 1 | -2/+2 |
| | | |||||
* | | Bump schema version | Mark Haines | 2015-05-08 | 1 | -1/+1 |
| | | |||||
* | | Make the timestamps in server_keys_json bigints | Mark Haines | 2015-05-08 | 1 | -0/+32 |
|/ | |||||
* | Merge branch 'erikj/executemany' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2015-05-05 | 5 | -25/+97 |
|\ | | | | | | | erikj/SYN-371 | ||||
| * | And use buffer(...) there as well | Erik Johnston | 2015-05-05 | 1 | -1/+2 |
| | | |||||
| * | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/executemany | Erik Johnston | 2015-05-05 | 5 | -24/+87 |
| |\ | |||||
| | * | Use buffer(...) when inserting into bytea column | Erik Johnston | 2015-05-05 | 1 | -1/+2 |
| | | | |||||
| | * | Merge pull request #139 from matrix-org/bugs/SYN-369 | Mark Haines | 2015-05-05 | 4 | -16/+80 |
| | |\ | | | | | | | | | Fix race with cache invalidation. SYN-369 | ||||
| | | * | Add some doc-string | Mark Haines | 2015-05-05 | 1 | -0/+4 |
| | | | | |||||
| | | * | Collect the invalidate callbacks on the transaction object rather than ↵ | Mark Haines | 2015-05-05 | 7 | -51/+51 |
| | | | | | | | | | | | | | | | | passing around a separate list | ||||
| | | * | SYN-369: Add comments to the sequence number logic in the cache | Mark Haines | 2015-05-05 | 1 | -0/+7 |
| | | | | |||||
| | | * | Add debug flag in synapse/storage/_base.py for debugging the cache logic by ↵ | Mark Haines | 2015-05-05 | 1 | -1/+12 |
| | | | | | | | | | | | | | | | | comparing what is in the cache with what was in the database on every access | ||||
| | | * | Invalidate the room_member cache if the current state events updates | Mark Haines | 2015-05-05 | 1 | -0/+5 |
| | | | | |||||
| | | * | Missing return for when the event was already persisted | Mark Haines | 2015-05-05 | 1 | -1/+1 |
| | | | | |||||
| | | * | Invalidate the caches from the correct thread | Mark Haines | 2015-05-05 | 6 | -29/+46 |
| | | | | |||||
| | | * | Sequence the modifications to the cache so that selects don't race with inserts | Mark Haines | 2015-05-05 | 1 | -3/+23 |
| | | | | |||||
| * | | | Add a comment about the zip(*[zip(sorted(...),...)]) | Erik Johnston | 2015-05-05 | 1 | -0/+8 |
| | | | | |||||
* | | | | Don't insert without deduplication. In this case we never actually use this ↵ | Erik Johnston | 2015-05-05 | 1 | -22/+0 |
|/ / / | | | | | | | | | | table, so simply remove the insert entirely | ||||
* | | | Fix indentation | Erik Johnston | 2015-05-05 | 1 | -10/+10 |
| | | | |||||
* | | | Add support for using executemany | Erik Johnston | 2015-05-05 | 4 | -59/+97 |
|/ / | |||||
* / | Don't call 'encode_parameter' no-op | Erik Johnston | 2015-05-05 | 3 | -10/+0 |
|/ | |||||
* | Correctly name transaction | Erik Johnston | 2015-05-05 | 1 | -1/+1 |
| | |||||
* | Remove some unused indexes | Erik Johnston | 2015-05-01 | 1 | -0/+18 |
| | |||||
* | user_id now in user_threepids | David Baker | 2015-05-01 | 1 | -3/+3 |
| | |||||
* | Don't use self.execute: it's designed for fetching stuff | David Baker | 2015-05-01 | 1 | -3/+8 |
| | |||||
* | No id field on user | David Baker | 2015-05-01 | 1 | -5/+1 |
| | |||||
* | More missed get_user_by_id API changes | David Baker | 2015-05-01 | 1 | -3/+3 |
| | |||||
* | Cache latest_event_ids_in_room | Erik Johnston | 2015-05-01 | 1 | -1/+4 |
| | |||||
* | Don't lock user_ips table for upsert. | Erik Johnston | 2015-05-01 | 2 | -4/+10 |
| | |||||
* | Fix bug where we reconnected to the database on every query. | Erik Johnston | 2015-05-01 | 2 | -1/+2 |
| | |||||
* | Split a storage function in two so that we don't have to do extra work. | Erik Johnston | 2015-05-01 | 1 | -0/+11 |
| | |||||
* | Remove pointless join | Erik Johnston | 2015-04-30 | 1 | -5/+4 |
| | |||||
* | Fix broken SQL | Erik Johnston | 2015-04-30 | 1 | -1/+1 |
| | |||||
* | Need more yield | Erik Johnston | 2015-04-30 | 1 | -1/+1 |
| | |||||
* | Add missing param | Erik Johnston | 2015-04-30 | 1 | -1/+1 |
| | |||||
* | More join conditions | Erik Johnston | 2015-04-30 | 1 | -2/+6 |
| | |||||
* | Add more conditions on JOINs to make postgres go a little faster. | Erik Johnston | 2015-04-30 | 2 | -4/+6 |
| | |||||
* | Fix up get_current_state and get_room_name_and_aliases queries to parse ↵ | Erik Johnston | 2015-04-30 | 2 | -32/+30 |
| | | | | events in transaction | ||||
* | Add get_rooms_for_user cache | Erik Johnston | 2015-04-30 | 1 | -0/+2 |
| | |||||
* | Don't use sub queries, it makes postgres sad | Erik Johnston | 2015-04-30 | 1 | -11/+5 |
| | |||||
* | SYN-367: Use upsert rather than insert_or_replace | Mark Haines | 2015-04-30 | 1 | -2/+6 |
| | |||||
* | Don't needlessly join on state_events | Erik Johnston | 2015-04-30 | 2 | -6/+4 |
| | |||||
* | Make simple query rather than long one and then throw away half the results | Erik Johnston | 2015-04-30 | 1 | -0/+10 |
| | |||||
* | Correctly decode, for sqlite and postgres, rows from pushers table | Erik Johnston | 2015-04-29 | 1 | -19/+24 |
| | |||||
* | pushkey' are also bytes. | Erik Johnston | 2015-04-29 | 1 | -8/+17 |
| | |||||
* | Typo | Erik Johnston | 2015-04-29 | 1 | -1/+1 |
| | |||||
* | Also remove yield from within lock in the other generator | Erik Johnston | 2015-04-29 | 1 | -8/+6 |
| | |||||
* | Fix deadlock in id_generators. No idea why this was an actual deadlock. | Erik Johnston | 2015-04-29 | 1 | -14/+16 |
| | |||||
* | Actually return rows | Erik Johnston | 2015-04-29 | 1 | -0/+2 |
| | |||||
* | Typo, args wrong way round | Erik Johnston | 2015-04-29 | 1 | -4/+1 |
| | |||||
* | Decode buffers in same thread | Erik Johnston | 2015-04-29 | 1 | -13/+19 |
| | |||||
* | We store pusher data as bytes | Erik Johnston | 2015-04-29 | 1 | -2/+2 |
| | |||||
* | Decode the data json in the storage layer (was moved but this part was missed) | David Baker | 2015-04-29 | 1 | -0/+9 |
| | |||||
* | Oops, update the contraint too | David Baker | 2015-04-29 | 1 | -1/+1 |
| | |||||
* | Be more postgressive | David Baker | 2015-04-29 | 2 | -4/+4 |
| | |||||
* | Be postgressive | David Baker | 2015-04-29 | 1 | -4/+3 |
| | |||||
* | Oops, forgot the schema delta file | David Baker | 2015-04-29 | 1 | -0/+10 |
| | |||||
* | txn.execute doesn't return cursors | Erik Johnston | 2015-04-29 | 1 | -4/+4 |
| | |||||
* | txn.execute doesn't return cursors | Erik Johnston | 2015-04-29 | 1 | -2/+2 |
| | |||||
* | Fix invalid SQL to work in postgres land | Erik Johnston | 2015-04-29 | 1 | -4/+6 |
| | |||||
* | pushers table requires an access_token | Erik Johnston | 2015-04-29 | 1 | -0/+1 |
| | |||||
* | We can't use REPLACE when upgrading databases now we have postgres | Erik Johnston | 2015-04-29 | 1 | -1/+2 |
| | |||||
* | Merge pull request #129 from matrix-org/key_distribution | Erik Johnston | 2015-04-29 | 3 | -1/+90 |
|\ | | | | | Key distribution v2 | ||||
| * | bump database schema version | Mark Haines | 2015-04-29 | 2 | -1/+1 |
| | | |||||
| * | Use bytea rather than BLOB | Mark Haines | 2015-04-29 | 1 | -1/+1 |
| | | |||||
| * | Merge branch 'develop' into key_distribution | Mark Haines | 2015-04-29 | 60 | -734/+2046 |
| |\ | | | | | | | | | | | | | Conflicts: synapse/config/homeserver.py | ||||
| * | | And don't bump the schema version unnecessarily | Mark Haines | 2015-04-28 | 1 | -1/+1 |
| | | | |||||
| * | | Add server_keys.sql to the current delta rather than creating a new delta | Mark Haines | 2015-04-28 | 1 | -0/+0 |
| | | | |||||
| * | | Merge branch 'develop' into key_distribution | Mark Haines | 2015-04-24 | 2 | -0/+28 |
| |\ \ | |||||
| * | | | Implement remote key lookup api | Mark Haines | 2015-04-22 | 1 | -13/+22 |
| | | | | |||||
| * | | | Add methods for storing and retrieving the raw key json | Mark Haines | 2015-04-15 | 2 | -3/+59 |
| | | | | |||||
| * | | | Return a sha256 fingerprint rather than the entire tls certificate | Mark Haines | 2015-04-14 | 2 | -1/+25 |
| | | | | |||||
* | | | | Make postgres database error slightly more helpful | Erik Johnston | 2015-04-29 | 1 | -1/+2 |
| | | | | |||||
* | | | | Use __all__ instead of assert to stop pyflakes from warning about unused ↵ | Erik Johnston | 2015-04-29 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | import in __init__ | ||||
* | | | | Appease PEP8 | Erik Johnston | 2015-04-29 | 1 | -0/+2 |
| | | | | |||||
* | | | | Check that postgres database has correct charset set | Erik Johnston | 2015-04-29 | 4 | -0/+33 |
| |_|/ |/| | | |||||
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into postgres | Erik Johnston | 2015-04-28 | 4 | -74/+133 |
|\ \ \ | |||||
| * \ \ | Merge pull request #126 from matrix-org/csauth | Mark Haines | 2015-04-28 | 3 | -55/+124 |
| |\ \ \ | | | | | | | | | | | Client / Server Auth Refactor | ||||
| | * | | | pep8 | David Baker | 2015-04-17 | 1 | -1/+1 |
| | | | | | |||||
| | * | | | Password reset, finally. | David Baker | 2015-04-17 | 1 | -1/+15 |
| | | | | | |||||
| | * | | | Add endpoint to get threepids from server | David Baker | 2015-04-17 | 1 | -0/+11 |
| | | | | | |||||
| | * | | | pep8 | David Baker | 2015-04-17 | 1 | -1/+1 |
| | | | | | |||||
| | * | | | make add3pid servlet work | David Baker | 2015-04-17 | 1 | -0/+11 |
| | | | | | |||||
| | * | | | Merge branch 'develop' into csauth | David Baker | 2015-04-17 | 5 | -196/+373 |
| | |\| | | |||||
| | * | | | Delete pushers when changing password | David Baker | 2015-03-26 | 1 | -35/+10 |
| | | | | | |||||
| | * | | | Allow multiple pushers for a single app ID & pushkey, honouring the 'append' ↵ | David Baker | 2015-03-25 | 2 | -15/+39 |
| | | | | | | | | | | | | | | | | | | | | flag in the API. | ||||
| | * | | | 1) Pushers are now associated with an access token | David Baker | 2015-03-24 | 3 | -2/+5 |
| | | | | | | | | | | | | | | | | | | | | 2) Change places where we mean unauthenticated to 401, not 403, in C/S v2: hack so it stays as 403 in v1 because web client relies on it. | ||||
| | * | | | Make deleting other access tokens when you change your password actually work | David Baker | 2015-03-24 | 1 | -5/+11 |
| | | | | | |||||
| | * | | | Implement password changing (finally) along with a start on making ↵ | David Baker | 2015-03-23 | 1 | -4/+29 |
| | | | | | | | | | | | | | | | | | | | | client/server auth more general. | ||||
| * | | | | pep8 | David Baker | 2015-04-27 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | Run database check before daemonizing, at the cost of database hygiene. | David Baker | 2015-04-27 | 2 | -18/+10 |
| | | | | | |||||
| * | | | | rename db method to be more informative | David Baker | 2015-04-27 | 1 | -4/+4 |
| | | | | | |||||
| * | | | | pep8 | David Baker | 2015-04-24 | 1 | -2/+2 |
| | | | | | |||||
| * | | | | Check users in our table aren't on a different domain to the one we're ↵ | David Baker | 2015-04-24 | 1 | -0/+18 |
| | |_|/ | |/| | | | | | | | | | | configured with to try & fix SYN-266 | ||||
* | | | | Use TEXT instead of VARCHAR(n), since PostgreSQL treats them the same except ↵ | Erik Johnston | 2015-04-28 | 32 | -289/+289 |
| | | | | | | | | | | | | | | | | for a limit | ||||
* | | | | Make get_max_token into inlineCallbacks so that the lock works. | Erik Johnston | 2015-04-27 | 1 | -3/+4 |
| | | | | |||||
* | | | | Merge branch 'develop' of github.com:matrix-org/synapse into postgres | Erik Johnston | 2015-04-27 | 2 | -0/+28 |
|\| | | | |||||
| * | | | Copyright notices | Mark Haines | 2015-04-24 | 2 | -0/+28 |
| | |/ | |/| | |||||
* | | | Shuffle operations so that locking upsert happens last in the txn. This ↵ | Erik Johnston | 2015-04-27 | 5 | -56/+56 |
| | | | | | | | | | | | | ensures the lock is held for the least amount of time possible. | ||||
* | | | Handle the fact that postgres databases can be restarted from under us | Erik Johnston | 2015-04-27 | 3 | -1/+33 |
| | | | |||||
* | | | Revert needless change to storage.profile | Erik Johnston | 2015-04-17 | 1 | -6/+1 |
| | | | |||||
* | | | Add unique index to room_aliases, remove duplicates on upgrade. Convert some ↵ | Erik Johnston | 2015-04-17 | 7 | -4/+19 |
| | | | | | | | | | | | | columns back to TEXT from bytea | ||||
* | | | PEP8 | Erik Johnston | 2015-04-16 | 2 | -5/+0 |
| | | | |||||
* | | | Go back to storing JSON in TEXT | Erik Johnston | 2015-04-16 | 11 | -41/+20 |
| | | | |||||
* | | | Move encoding and decoding of JSON into storage layer | Erik Johnston | 2015-04-16 | 1 | -20/+6 |
| | | | |||||
* | | | Remove mysql/maria support | Erik Johnston | 2015-04-15 | 3 | -53/+1 |
| | | | |||||
* | | | Change full_schemas/11 to work with postgres | Erik Johnston | 2015-04-15 | 13 | -84/+90 |
| | | | |||||
* | | | Remove debug logging | Erik Johnston | 2015-04-15 | 1 | -2/+0 |
| | | |