1
0

Commit Graph

  • deb0237166 Add some doc-string Mark Haines 2015-05-05 17:45:11 +01:00
  • e45b05647e Fix the --help option for synapse Mark Haines 2015-05-05 17:38:10 +01:00
  • 3d5a955e08 Missed events are not outliers Erik Johnston 2015-05-05 17:36:57 +01:00
  • d18f37e026 Collect the invalidate callbacks on the transaction object rather than passing around a separate list Mark Haines 2015-05-05 17:32:21 +01:00
  • 9951542393 Add a comment about the zip(*[zip(sorted(...),...)]) Erik Johnston 2015-05-05 17:06:55 +01:00
  • 041b6cba61 SYN-369: Add comments to the sequence number logic in the cache Mark Haines 2015-05-05 16:32:44 +01:00
  • 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 Mark Haines 2015-05-05 16:24:04 +01:00
  • 531d7955fd Don't insert without deduplication. In this case we never actually use this table, so simply remove the insert entirely Erik Johnston 2015-05-05 16:12:28 +01:00
  • bfa4a7f8b0 Invalidate the room_member cache if the current state events updates Mark Haines 2015-05-05 15:43:49 +01:00
  • d0fece8d3c Missing return for when the event was already persisted Mark Haines 2015-05-05 15:39:09 +01:00
  • bdcd7693c8 Fix indentation Erik Johnston 2015-05-05 15:14:48 +01:00
  • 43c2e8deae Add support for using executemany Erik Johnston 2015-05-05 15:13:25 +01:00
  • 1692dc019d Don't call 'encode_parameter' no-op Erik Johnston 2015-05-05 15:00:30 +01:00
  • a9aea68fd5 Invalidate the caches from the correct thread Mark Haines 2015-05-05 14:57:08 +01:00
  • 261d809a47 Sequence the modifications to the cache so that selects don't race with inserts Mark Haines 2015-05-05 14:08:03 +01:00
  • d9cc5de9e5 Correctly name transaction Erik Johnston 2015-05-05 10:24:10 +01:00
  • b8940cd902 Remove some unused indexes Erik Johnston 2015-05-01 16:14:06 +01:00
  • 1942382246 Don't log enqueue_ Erik Johnston 2015-05-01 16:11:55 +01:00
  • eb9bd2d949 user_id now in user_threepids David Baker 2015-05-01 15:04:20 +01:00
  • 2d386d7038 That wasn't a deferred Erik Johnston 2015-05-01 14:41:16 +01:00
  • 4ac2823b3c Remove inlineCallbacks from non-generator Erik Johnston 2015-05-01 14:39:23 +01:00
  • 22c7c5eb8f Typo Erik Johnston 2015-05-01 14:38:14 +01:00
  • 42c12c04f6 Remove some run_on_reactors Erik Johnston 2015-05-01 14:37:33 +01:00
  • adb5b76ff5 Don't log all auth events every time we call auth.check Erik Johnston 2015-05-01 14:34:20 +01:00
  • 3bcdf3664c Use the daemonize key from the config if it exists Mark Haines 2015-05-01 14:34:48 +01:00
  • 9eeb03c0dd Don't use self.execute: it's designed for fetching stuff David Baker 2015-05-01 14:21:03 +01:00
  • 32937f3ea0 database config is not kept in separate config file anymore Mark Haines 2015-05-01 14:06:43 +01:00
  • 7b50769eb9 Merge pull request #136 from matrix-org/markjh/config_cleanup Mark Haines 2015-05-01 14:04:39 +01:00
  • 7693f24792 No id field on user David Baker 2015-05-01 13:55:42 +01:00
  • 46a65c282f Allow generate-config to run against an existing config file to generate default keys Mark Haines 2015-05-01 13:54:38 +01:00
  • 92b20713d7 More missed get_user_by_id API changes David Baker 2015-05-01 13:45:25 +01:00
  • da4ed08739 One too many lens Erik Johnston 2015-05-01 13:29:38 +01:00
  • 9060dc6b59 Change public room list to use defer.gatherResults Erik Johnston 2015-05-01 13:28:27 +01:00
  • 1fae1b3166 This api now no longer returns an array David Baker 2015-05-01 13:25:39 +01:00
  • 80b4119279 Don't wait for storage of access_token Erik Johnston 2015-05-01 13:14:05 +01:00
  • 4011cf1c42 Cache latest_event_ids_in_room Erik Johnston 2015-05-01 13:06:26 +01:00
  • 171829bb94 Add logging to initialSync erikj/initial_sync_perf Erik Johnston 2015-05-01 11:24:03 +01:00
  • 657298cebd Don't lock user_ips table for upsert. Erik Johnston 2015-05-01 10:46:48 +01:00
  • fabb7acd45 Fix bug where we reconnected to the database on every query. Erik Johnston 2015-05-01 10:24:24 +01:00
  • 23c639ff32 Split a storage function in two so that we don't have to do extra work. Erik Johnston 2015-05-01 10:17:19 +01:00
  • 8be5284e91 Remove pointless join Erik Johnston 2015-04-30 18:49:26 +01:00
  • 503e4d3d52 Fix broken SQL Erik Johnston 2015-04-30 18:44:47 +01:00
  • 00718ae7a9 Need more yield Erik Johnston 2015-04-30 18:43:39 +01:00
  • 0465560c1a Add missing param Erik Johnston 2015-04-30 18:42:44 +01:00
  • 61d05daab1 More join conditions Erik Johnston 2015-04-30 18:41:05 +01:00
  • 6ead27ddda Add more conditions on JOINs to make postgres go a little faster. Erik Johnston 2015-04-30 18:32:03 +01:00
  • 50c87b8eed Allow "manhole" to be ommited from the config Mark Haines 2015-04-30 18:11:47 +01:00
  • 345995fcde Remove the ~, comment the lines instead Mark Haines 2015-04-30 18:10:19 +01:00
  • 62cebee8ee Update key.py Mark Haines 2015-04-30 17:54:01 +01:00
  • 95cbfee8ae Update metrics.py Mark Haines 2015-04-30 17:52:20 +01:00
  • 4ad8350607 Update README.rst Mark Haines 2015-04-30 17:48:29 +01:00
  • 6ea9cf58be missing import Mark Haines 2015-04-30 17:21:21 +01:00
  • f383d5a801 Fix up get_current_state and get_room_name_and_aliases queries to parse events in transaction Erik Johnston 2015-04-30 17:12:52 +01:00
  • c95480963e read the pid_file from the config file in synctl Mark Haines 2015-04-30 17:12:15 +01:00
  • 069296dbb0 Can't specify bind-port on the cmdline anymore Mark Haines 2015-04-30 17:08:07 +01:00
  • 2d4d2bbae4 Merge branch 'develop' into markjh/config_cleanup Mark Haines 2015-04-30 16:54:55 +01:00
  • 2f1348f339 Write a default log_config when generating config Mark Haines 2015-04-30 16:52:57 +01:00
  • 69d4063651 Add get_rooms_for_user cache Erik Johnston 2015-04-30 16:47:38 +01:00
  • 5b02f33451 Undo changes to logger config, ie. remove the access_log_file option: decision is to support this through log_config rather tan adding an option. David Baker 2015-04-30 16:20:12 +01:00
  • 054aa0d58c Do access log using python's logging stuff, just under a separate logger name David Baker 2015-04-30 16:17:27 +01:00
  • 3c4c229788 Don't use sub queries, it makes postgres sad Erik Johnston 2015-04-30 16:16:53 +01:00
  • 74aaacf82a Don't break when sizes or durations are given as integers Mark Haines 2015-04-30 16:04:02 +01:00
  • 29400b45b9 SYN-367: Use upsert rather than insert_or_replace Mark Haines 2015-04-30 15:21:31 +01:00
  • c28f1d16f0 Add a random string to the auto generated key id Mark Haines 2015-04-30 15:13:14 +01:00
  • 265f30bd3f Allow --enable-registration to be passed on the commandline Mark Haines 2015-04-30 15:04:06 +01:00
  • c9e62927f2 Use disable_registration keys if they are present Mark Haines 2015-04-30 14:34:09 +01:00
  • 2366d28780 Don't needlessly join on state_events Erik Johnston 2015-04-30 13:52:28 +01:00
  • d89a9f7283 Add an access_log David Baker 2015-04-30 13:58:13 +01:00
  • 1aa11cf7ce Allow multiple config files, set up a default config before applying the config files Mark Haines 2015-04-30 13:48:15 +01:00
  • 0c1b7f843b Unused import David Baker 2015-04-30 13:33:30 +01:00
  • 4b46fbec5b Doesn't look like this is used anymore David Baker 2015-04-30 12:04:08 +01:00
  • 1d7702833d Make simple query rather than long one and then throw away half the results Erik Johnston 2015-04-30 10:16:12 +01:00
  • 6b69ddd17a remove duplicate parse_size method Mark Haines 2015-04-30 04:26:29 +01:00
  • d624e2a638 Manually generate the default config yaml, remove most of the commandline arguments for synapse anticipating that people will use the yaml instead. Simpify implementing config options by not requiring the classes to hit the super class Mark Haines 2015-04-30 04:24:44 +01:00
  • b1ca784aca Correctly decode, for sqlite and postgres, rows from pushers table Erik Johnston 2015-04-29 19:41:14 +01:00
  • 4a9dc5b2f5 pushkey' are also bytes. Erik Johnston 2015-04-29 19:27:02 +01:00
  • 0ade2712d1 Typo Erik Johnston 2015-04-29 19:17:25 +01:00
  • 50f96f256f Also remove yield from within lock in the other generator Erik Johnston 2015-04-29 19:17:00 +01:00
  • d2d61a8288 Fix deadlock in id_generators. No idea why this was an actual deadlock. Erik Johnston 2015-04-29 19:15:23 +01:00
  • 3e71d13acf Also log when we've started pushers Erik Johnston 2015-04-29 18:37:42 +01:00
  • e7a6edb0ee Revert previous Erik Johnston 2015-04-29 18:37:30 +01:00
  • c27d6ad6b5 Only start pushers when synapse has fully started Erik Johnston 2015-04-29 18:25:24 +01:00
  • 46daf2d200 Start pushers on reactor thread Erik Johnston 2015-04-29 18:22:20 +01:00
  • 3864b3a8e6 Actually return rows Erik Johnston 2015-04-29 18:07:36 +01:00
  • 0618978238 Typo, args wrong way round Erik Johnston 2015-04-29 18:04:35 +01:00
  • 09177f4f2e Decode buffers in same thread Erik Johnston 2015-04-29 18:03:42 +01:00
  • 472be88674 We store pusher data as bytes Erik Johnston 2015-04-29 17:43:46 +01:00
  • a6e62cf6d0 Fix off by one in presence token handling Erik Johnston 2015-04-29 17:37:11 +01:00
  • 12d381bd5d Decode the data json in the storage layer (was moved but this part was missed) David Baker 2015-04-29 17:13:51 +01:00
  • f8c30faf25 Oops, update the contraint too David Baker 2015-04-29 16:58:42 +01:00
  • 61cd5d9045 Be more postgressive David Baker 2015-04-29 16:57:14 +01:00
  • fb95035a65 Be postgressive David Baker 2015-04-29 16:53:41 +01:00
  • 4669def000 Oops, forgot the schema delta file David Baker 2015-04-29 16:49:44 +01:00
  • 0337eaf321 txn.execute doesn't return cursors Erik Johnston 2015-04-29 16:43:39 +01:00
  • 884fb88e28 txn.execute doesn't return cursors Erik Johnston 2015-04-29 16:35:20 +01:00
  • d76c058eea Fix invalid SQL to work in postgres land Erik Johnston 2015-04-29 16:30:25 +01:00
  • 9927170787 Accept camelcase + underscores in binding too David Baker 2015-04-29 15:57:09 +01:00
  • 109c8aafd2 Fix includes David Baker 2015-04-29 15:45:44 +01:00
  • b7788f80a3 Accept both camelcase and underscore threepid creds for transition David Baker 2015-04-29 15:40:35 +01:00
  • c8ed9bd278 pushers table requires an access_token Erik Johnston 2015-04-29 15:33:27 +01:00