Commit Graph

1478 Commits (065e739d6e1de2f3dea1ebfc63065b08bda37be4)

Author SHA1 Message Date
Matthew Hodgson 8b98a7e8c3 pep8 9 years ago
Matthew Hodgson 7426c86eb8 add a persistent cache of URL lookups, and fix up the in-memory one to work 9 years ago
Erik Johnston d76d89323c Use computed prev event ids 9 years ago
Mark Haines 2a37467fa1 Use google style doc strings. 9 years ago
Mark Haines 9bc5b4c663 Assert that the step != 0 9 years ago
Mark Haines 35b5c4ba1b use google style doc strings 9 years ago
Mark Haines a2866e2e6a Rename direction to step, apply checks consistently 9 years ago
Mark Haines e36bfbab38 Use a stream id generator for backfilled ids 9 years ago
Mark Haines 7753fc6570 Fix the invalidation of the names and aliases cache 9 years ago
Mark Haines 5d06929169 Move the check for backfilled outside the for loop 9 years ago
Mark Haines 76503f95ed Remove the is_new_state argument to persist event. 9 years ago
Mark Haines 2ec5426035 Use a namedtuple rather than tuple unpacking 9 years ago
Mark Haines 1fbb094c6f Add replication streams for ex outliers and current state resets 9 years ago
Mark Haines 8b8052909f return the state_group for backfill 9 years ago
Mark Haines 61407986b4 Add a entry to current_state_resets table when the current state is reset 9 years ago
Mark Haines 31a9eceda5 Add a replication stream for state groups 9 years ago
Mark Haines 1e25f62ee6 Use a stream id generator to assign state group ids 9 years ago
Erik Johnston 2f0180b09e Don't bother interning keys that are already interned 9 years ago
Erik Johnston acdfef7b14 Intern all the things 9 years ago
Erik Johnston 75daede92f String intern 9 years ago
Erik Johnston b275765545 Comment about weird SQL 9 years ago
Erik Johnston 0c1a27b787 SQLite and postgres doesn't share a true literal 9 years ago
Erik Johnston 84afeb41f3 Ensure all old public rooms have aliases 9 years ago
Erik Johnston d87a846ebc Don't cache events in get_recent_events_for_room 9 years ago
Erik Johnston 8b0dfc9fc4 Don't cache events in get_current_state_for_key 9 years ago
Erik Johnston b6507869cd Make get_invites return RoomsForUser 9 years ago
Erik Johnston 99f929f36b Make StateHandler._state_cache only store event_ids. 9 years ago
Erik Johnston 6cf0ba1466 Bump get_unread_event_push_actions_by_room_for_user cache 9 years ago
Erik Johnston 76d18a5776 Bump get_aliases_for_room cache 9 years ago
Erik Johnston 2c86187a1b Don't cache events in _state_group_cache 9 years ago
Erik Johnston b591277620 Make stateGroupCache honour CACHE_SIZE_FACTOR 9 years ago
Mark Haines 5244c0b48e Remove unused backfilled parameter from persist_event 9 years ago
Erik Johnston 3e7fac0d56 Add published room list edit API 9 years ago
Erik Johnston 67ed8065db Dedupe requested event list in _get_events 9 years ago
Mark Haines 673c96ce97 Remove dead code left over from presence changes 9 years ago
Mark Haines ba660ecde2 Add a comment to offer a hint to an explanation for why we have a unique constraint on (app_id, pushkey, user_id) 9 years ago
Mark Haines ee32d622ce Fix a couple of errors when deleting pushers 9 years ago
Mark Haines b6e8420aee Add replication stream for pushers 9 years ago
Erik Johnston 15122da0e2 Thats not how transactions work. 9 years ago
Erik Johnston b13035cc91 Implement logout 9 years ago
Erik Johnston c081228439 Fix SQL statement 9 years ago
David Baker 2dee03aee5 more pep8 9 years ago
David Baker af59826a2f Make select more sensible when dseleting access tokens, rename pusher deletion to match access token deletion and make exception arg optional. 9 years ago
David Baker f523177850 Delete old, unused methods and rename new one to just be `user_delete_access_tokens` with an `except_token_ids` argument doing what it says on the tin. 9 years ago
David Baker 57c444b3ad Dear PyCharm, please indent sensibly for me. Thx. 9 years ago
David Baker aa11db5f11 Fix cache invalidation so deleting access tokens (which we did when changing password) actually takes effect without HS restart. Reinstate the code to avoid logging out the session that changed the password, removed in 415c2f0549 9 years ago
Daniel Wagner-Hall 465605d616 Store appservice ID on register 9 years ago
Erik Johnston 9669a99d1a Update users table in a batched manner 9 years ago
Erik Johnston 8a88684736 Add comment 9 years ago
Erik Johnston af2fe6110c Return the correct token form 9 years ago