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

Remove unused indices #782

Merged
merged 3 commits into from May 13, 2016

Conversation

Projects
None yet
2 participants
Owner

erikjohnston commented May 13, 2016 edited

This includes removing both unused indices and indices that are subsets of other indices.

Remove unused indices
This includes removing both unused indices and indices that are subsets
of other indices.

@NegativeMjark NegativeMjark commented on an outdated diff May 13, 2016

synapse/storage/schema/delta/32/remove_indices.sql
-- The following indices were unused
+DROP INDEX IF EXISTS remote_media_cache_thumbnails_media_id;
DROP INDEX IF EXISTS evauth_edges_auth_id;
DROP INDEX IF EXISTS topics_room_id;
@NegativeMjark

NegativeMjark May 13, 2016

Contributor

I think that either I'd want to keep this index or get rid of the entire table given that it is write only in synapse, and can be fairly easily constructed from the state tables for ad-hoc queries.

Contributor

NegativeMjark commented May 13, 2016

Other than the topics table it LGTM

@erikjohnston erikjohnston merged commit 024cda9 into develop May 13, 2016

0 of 4 checks passed

Flake8 + Packaging (Merged PR) Build triggered. sha1 is merged.
Details
Sytest Postgres (Merged PR) Build triggered. sha1 is merged.
Details
Sytest SQLite (Merged PR) Build triggered. sha1 is merged.
Details
Unit Tests (Merged PR) Build triggered. sha1 is merged.
Details

@richvdh richvdh deleted the erikj/remove_indices branch Dec 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment