summary refs log tree commit diff
path: root/synapse/storage/roommember.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Include banned rooms in the archived section of v2 syncMark Haines2015-10-211-2/+2
|
* Add rooms that the user has left under archived in v2 sync.Mark Haines2015-10-191-0/+13
|
* Add a get_invites_for_user method to the storage to find out the rooms a ↵Mark Haines2015-10-131-0/+14
| | | | user is invited to
* Merge pull request #288 from matrix-org/markjh/unused_definitionsMark Haines2015-09-281-6/+0
|\ | | | | Remove some of the unused definitions from synapse
| * synapse/storage/roommember.py:_get_members_query was unusedMark Haines2015-09-231-6/+0
| |
* | Fix order of ON constraints in _get_rooms_for_user_where_membership_is_txnMark Haines2015-09-241-6/+6
|/
* Include the event_id and stream_ordering of membership events when looking ↵Mark Haines2015-09-081-2/+4
| | | | up which rooms a user is in
* Move all the caches into their own package, synapse.util.cachesErik Johnston2015-08-111-1/+2
|
* Change Cache to not use *args in its interfaceErik Johnston2015-08-071-3/+3
|
* Up the cache size for 'get_joined_hosts_for_room' and 'get_users_in_room'Erik Johnston2015-08-051-2/+2
|
* Add bulk insert events APIErik Johnston2015-06-251-27/+17
|
* Merge branch 'master' of github.com:matrix-org/synapse into developErik Johnston2015-05-221-0/+2
|\
| * Add caches for things requested by the pushersMark Haines2015-05-211-0/+2
| |
* | Move fetching of events into their own transactionsErik Johnston2015-05-141-21/+18
|/
* Collect the invalidate callbacks on the transaction object rather than ↵Mark Haines2015-05-051-5/+3
| | | | passing around a separate list
* Invalidate the caches from the correct threadMark Haines2015-05-051-3/+5
|
* More join conditionsErik Johnston2015-04-301-2/+6
|
* Add more conditions on JOINs to make postgres go a little faster.Erik Johnston2015-04-301-1/+1
|
* Add get_rooms_for_user cacheErik Johnston2015-04-301-0/+2
|
* PEP8Erik Johnston2015-04-071-1/+0
|
* Don't use room hosts tableErik Johnston2015-03-241-25/+4
|
* Sanitize RoomMemberStoreErik Johnston2015-03-231-63/+61
|
* Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-03-201-1/+2
|\
| * Give sensible names for '_simple_...' transactionsErik Johnston2015-03-201-1/+2
| |
* | Convert storage layer to be mysql compatibleErik Johnston2015-03-191-1/+1
|/
* PEP8Kegan Dougal2015-03-021-1/+1
|
* Wrap all of get_app_service_rooms in a txn.Kegan Dougal2015-03-021-17/+19
|
* RoomMemberStore no longer needs a _user_rooms_cache memberPaul "LeoNerd" Evans2015-02-231-5/+0
|
* Take named arguments to @cached() decorator, add a 'max_entries' limitPaul "LeoNerd" Evans2015-02-191-1/+1
|
* Move @cached decorator out into synapse.storage._base; add minimal docsPaul "LeoNerd" Evans2015-02-191-27/+1
|
* Pull out the 'get_rooms_for_user' cache logic into a reüsable @cached decoratorPaul "LeoNerd" Evans2015-02-191-24/+29
|
* Use consumeErrors=True on all DeferredLists.Erik Johnston2015-02-171-1/+1
| | | | | | This is so that the DeferredLists actually consume the error instead of propogating down the non-existent errback chain. This should reduce the number of unhandled errors we are seeing.
* Added another TODO notePaul "LeoNerd" Evans2015-02-111-0/+3
|
* Cache the result of a get_rooms_for_user query, to make ↵Paul "LeoNerd" Evans2015-02-111-7/+34
| | | | user_rooms_intersect() much lighter in the read-common case
* First step of making user_rooms_intersect() faster - implement in ↵Paul "LeoNerd" Evans2015-02-111-18/+20
| | | | intersection logic in Python code terms of a DB query that is cacheable per user
* Replace hs.parse_userid with UserID.from_stringMark Haines2015-01-231-2/+3
|
* Merge branch 'erikj-perf' of github.com:matrix-org/synapse into developErik Johnston2015-01-061-21/+49
|\
| * Name 'user_rooms_intersect' transactionErik Johnston2015-01-061-16/+18
| |
| * We don't need the full events for get_rooms_for_user_where_membership_isErik Johnston2015-01-061-5/+31
| |
* | Merge pull request #28 from matrix-org/erikj-perfMark Haines2015-01-061-7/+14
|\| | | | | Database performance improvements.
| * Add RoomMemberStore.get_users_in_room, so that we can get the list of joined ↵Erik Johnston2015-01-061-0/+13
| | | | | | | | users without having to retrieve the full events
| * Test some ideas that might help performance a bitErik Johnston2014-12-171-7/+1
| |
* | Update copyright noticesMark Haines2015-01-061-1/+1
|/
* Workaround for non-uniqueness of room member events in the database ↵Paul "LeoNerd" Evans2014-12-021-1/+3
| | | | confusing HAVING COUNT() test of room membership intersection (with thanks to Tom Molesworth)
* Add a few missing yields, Move deferred lists inside PreserveLoggingContext ↵Mark Haines2014-11-201-2/+2
| | | | because they don't interact well with the logging contexts
* Fix pep8 warningsMark Haines2014-10-301-3/+5
|
* pyflakes cleanupErik Johnston2014-09-301-1/+0
|
* Add LIMIT to scalar subqueryErik Johnston2014-09-251-1/+2
|
* Rename deletions to redactionsErik Johnston2014-09-241-3/+3
|
* Add m.room.deletion. If an event is deleted it will be returned to clients ↵Erik Johnston2014-09-231-3/+10
| | | | 'pruned', i.e. all client specified keys will be removed.
* Merge remote-tracking branch 'origin/develop' into test-sqlite-memoryPaul "LeoNerd" Evans2014-09-151-2/+2
|\
| * Fix bug where we relied on the current_state_events being updated when we ↵Erik Johnston2014-09-121-2/+2
| | | | | | | | are handling type specific persistence
* | Merge remote-tracking branch 'origin/develop' into test-sqlite-memoryPaul "LeoNerd" Evans2014-09-121-12/+45
|\| | | | | | | | | Conflicts: synapse/storage/pdu.py
| * Fix bug where we incorrectly removed a remote host from the list of hosts in ↵Erik Johnston2014-09-121-12/+45
| | | | | | | | a room when any user from that host left that room even if they weren't the last user from that host in that room
* | More accurate docs / clearer paramter names in RoomMemberStorePaul "LeoNerd" Evans2014-09-121-6/+7
| |
* | Revert recent changes to RoomMemberStorePaul "LeoNerd" Evans2014-09-121-27/+9
| |
* | Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_poolPaul "LeoNerd" Evans2014-09-121-0/+5
| |
* | Add a better _store_room_member_txn() method that takes separated fields ↵Paul "LeoNerd" Evans2014-09-111-8/+21
| | | | | | | | instead of an event object; also add FIXME comment about a big bug in the logic
* | Rename _store_room_member_txn to _store_room_member_from_event_txn so we can ↵Paul "LeoNerd" Evans2014-09-111-1/+1
|/ | | | create another, more sensible function of that name
* When getting a state event also include the previous contentErik Johnston2014-09-061-2/+2
|
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-031-1/+1
| | | | hasn't been incorporated in time for launch.
* Rename the 'do_users_share_a_room' to something slightly less verb-soundingPaul "LeoNerd" Evans2014-09-031-1/+1
|
* add _get_room_member, fix datastore methodsMark Haines2014-08-271-2/+20
|
* Merge branch 'develop' into storage_transactionsMark Haines2014-08-261-10/+27
|\ | | | | | | | | | | | | Conflicts: synapse/api/auth.py synapse/handlers/room.py synapse/storage/__init__.py
| * Fix pyflakes errorsMark Haines2014-08-261-7/+2
| |
| * Add a do_users_share_a_room method and use that in the presence handler.Erik Johnston2014-08-261-0/+21
| |
| * Merge branch 'develop' of github.com:matrix-org/synapse into ↵Kegan Dougal2014-08-261-1/+1
| |\ | | | | | | | | | client_server_url_rename
| | * Turn off spammy loggingErik Johnston2014-08-221-1/+1
| | |
| * | Removed member list servlet: now using generic state paths.Kegan Dougal2014-08-261-2/+3
| |/
* / Move the event storage into a single transactionMark Haines2014-08-261-5/+5
|/
* PEP8 cleanupsErik Johnston2014-08-151-1/+0
|
* Start chagning the events stream to work with the new DB schemaErik Johnston2014-08-151-1/+7
|
* Fix up typos and correct sql queriesErik Johnston2014-08-141-13/+13
|
* Start fixing places that use the data store.Erik Johnston2014-08-141-1/+1
|
* Rename _execute_queryErik Johnston2014-08-141-1/+1
|
* Fix up RoomMemberStore to work with the new schema.Erik Johnston2014-08-141-95/+69
|
* add in whitespace after copyright statements to improve legibilityMatthew Hodgson2014-08-131-0/+1
|
* Reference Matrix Home Servermatrix.org2014-08-121-0/+171