Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Optimise caches for single key #2185
Conversation
erikjohnston
added some commits
May 4, 2017
erikjohnston
assigned
NegativeMjark
May 4, 2017
| @@ -147,7 +147,7 @@ def get_hosts_in_room(self, room_id, cache_context): | ||
| hosts = frozenset(get_domain_from_id(user_id) for user_id in user_ids) | ||
| defer.returnValue(hosts) | ||
| - @cached(max_entries=500000, iterable=True) | ||
| + @cached(max_entries=100000, iterable=True) |
NegativeMjark
May 4, 2017
Contributor
Is there a reason this number is going down at the same time as changing the cache structure?
erikjohnston
May 5, 2017
Owner
Because that's how this PR started and then I sort of got side tracked
erikjohnston
merged commit e3aa8a7
into
develop
May 5, 2017
8 checks passed
Sytest Dendron (Commit)
Build #2065 origin/erikj/smaller_caches succeeded in 6 min 51 sec
Details
Sytest Dendron (Merged PR)
Build finished.
Details
Sytest Postgres (Commit)
Build #2898 origin/erikj/smaller_caches succeeded in 8 min 42 sec
Details
Sytest Postgres (Merged PR)
Build finished.
Details
Sytest SQLite (Commit)
Build #2966 origin/erikj/smaller_caches succeeded in 4 min 11 sec
Details
Sytest SQLite (Merged PR)
Build finished.
Details
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
continuous-integration/travis-ci/push
The Travis CI build passed
Details
psaavedra
added a commit
to psaavedra/synapse
that referenced
this pull request
May 19, 2017
erikjohnston
deleted the
erikj/smaller_caches
branch
Oct 26, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
erikjohnston commentedMay 4, 2017
No description provided.