forked-synapse/synapse/storage/databases/main
Patrick Cloke 5e024a0645
Modify StoreKeyFetcher to read from server_keys_json. (#15417)
Before this change:

* `PerspectivesKeyFetcher` and `ServerKeyFetcher` write to `server_keys_json`.
* `PerspectivesKeyFetcher` also writes to `server_signature_keys`.
* `StoreKeyFetcher` reads from `server_signature_keys`.

After this change:

* `PerspectivesKeyFetcher` and `ServerKeyFetcher` write to `server_keys_json`.
* `PerspectivesKeyFetcher` also writes to `server_signature_keys`.
* `StoreKeyFetcher` reads from `server_keys_json`.

This results in `StoreKeyFetcher` now using the results from `ServerKeyFetcher`
in addition to those from `PerspectivesKeyFetcher`, i.e. keys which are directly
fetched from a server will now be pulled from the database instead of refetched.

An additional minor change is included to avoid creating a `PerspectivesKeyFetcher`
(and checking it) if no `trusted_key_servers` are configured.

The overall impact of this should be better usage of cached results:

* If a server has no trusted key servers configured then it should reduce how often keys
  are fetched.
* if a server's trusted key server does not have a requested server's keys cached then it
  should reduce how often keys are directly fetched.
2023-04-20 12:30:32 -04:00
..
__init__.py Allow use of the /filter Client-Server APIs on workers. (#15134) 2023-02-28 16:37:19 +00:00
account_data.py Experimental MSC3890 Implementation: Fix deleting account data when using an account data writer worker (#14869) 2023-03-03 10:51:57 +00:00
appservice.py Return read-only collections from @cached methods (#13755) 2023-02-10 23:29:00 +00:00
cache.py Remove support for aggregating reactions (#15172) 2023-02-28 18:49:28 +00:00
censor_events.py Safe async event cache (#13308) 2022-07-19 11:25:29 +00:00
client_ips.py Optimise _update_client_ips_batch_txn to batch together database operations. (#12252) 2022-04-08 15:29:13 +01:00
deviceinbox.py to_device updates could be dropped when consuming the replication stream (#15349) 2023-03-30 19:41:14 +02:00
devices.py Revert pruning of old devices (#15360) 2023-03-31 13:51:51 +01:00
directory.py Load /directory/room/{roomAlias} endpoint on workers (#15333) 2023-04-14 10:24:06 +01:00
e2e_room_keys.py Delete server-side backup keys when deactivating an account. (#15181) 2023-04-04 20:16:08 +00:00
end_to_end_keys.py Implement MSC3983 to proxy /keys/claim queries to appservices. (#15314) 2023-03-28 18:26:27 +00:00
event_federation.py More precise type for LoggingTransaction.execute (#15432) 2023-04-14 18:04:49 +00:00
event_push_actions.py Revert "Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15350)" 2023-03-31 12:10:10 +01:00
events_bg_updates.py Remove support for aggregating reactions (#15172) 2023-02-28 18:49:28 +00:00
events_forward_extremities.py Fix returned count of delete extremities admin API (#12496) 2022-04-19 16:49:45 +01:00
events_worker.py Make POST /_matrix/client/v3/rooms/{roomId}/report/{eventId} endpoint return 404 if event exists, but the user lacks access (#15300) 2023-03-21 13:24:03 +00:00
events.py Revert "Reintroduce membership tables event stream ordering (#15128)" (#15347) 2023-03-29 13:24:28 +01:00
filtering.py Allow use of the /filter Client-Server APIs on workers. (#15134) 2023-02-28 16:37:19 +00:00
keys.py Modify StoreKeyFetcher to read from server_keys_json. (#15417) 2023-04-20 12:30:32 -04:00
lock.py Require SQLite >= 3.27.0 (#13760) 2022-09-09 11:14:10 +01:00
media_repository.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
metrics.py Add some type hints to datastore (#12717) 2022-05-17 15:29:06 +01:00
monthly_active_users.py Return read-only collections from @cached methods (#13755) 2023-02-10 23:29:00 +00:00
openid.py Add type hints to some storage classes (#11307) 2021-11-11 08:47:31 -05:00
presence.py Always notify replication when a stream advances (#14877) 2023-01-20 18:02:18 +00:00
profile.py Remove remaining pieces of groups code. (#12966) 2022-06-06 13:20:05 -04:00
purge_events.py Revert "Reintroduce membership tables event stream ordering (#15128)" (#15347) 2023-03-29 13:24:28 +01:00
push_rule.py Combine AbstractStreamIdTracker and AbstractStreamIdGenerator. (#15192) 2023-03-03 08:13:37 -05:00
pusher.py Fix the 'set_device_id_for_pushers_txn' background update. (#15391) 2023-04-05 07:49:15 -04:00
receipts.py Combine AbstractStreamIdTracker and AbstractStreamIdGenerator. (#15192) 2023-03-03 08:13:37 -05:00
registration.py Add module API callbacks for adding and deleting local 3PID associations (#15044 2023-02-27 14:19:19 +00:00
rejections.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
relations.py Apply & bundle edits for non-message events. (#15295) 2023-03-21 14:19:54 -04:00
room_batch.py Remove option to skip locking of tables during emulated upserts (#14469) 2022-11-28 13:42:06 +00:00
room.py Implement MSC2175: remove the creator field from create events. (#15394) 2023-04-06 16:26:28 -04:00
roommember.py Speed up membership queries for users with forgotten rooms (#15385) 2023-04-04 14:11:34 +01:00
search.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
session.py Run pyupgrade --py37-plus --keep-percent-format on Synapse (#11685) 2022-01-05 09:53:05 -08:00
signatures.py Return read-only collections from @cached methods (#13755) 2023-02-10 23:29:00 +00:00
state_deltas.py Wait for lazy join to complete when getting current state (#12872) 2022-06-01 16:02:53 +01:00
state.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
stats.py Bump ruff from 0.0.252 to 0.0.259 (#15328) 2023-03-28 09:46:47 +01:00
stream.py Bump ruff from 0.0.252 to 0.0.259 (#15328) 2023-03-28 09:46:47 +01:00
tags.py Return read-only collections from @cached methods (#13755) 2023-02-10 23:29:00 +00:00
transactions.py Remove unused store method _set_destination_retry_timings_emulated. (#15266) 2023-03-14 17:32:46 +00:00
ui_auth.py Add some type hints to datastore (#12485) 2022-04-27 13:05:00 +01:00
user_directory.py User directory background update speedup (#15435) 2023-04-14 16:10:32 +01:00
user_erasure_store.py Annotations for user_erasure_store (#11313) 2021-11-11 19:22:19 +00:00