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

Replace postgres GIN with GIST #1192

Merged
merged 2 commits into from Nov 3, 2016

Conversation

Projects
None yet
2 participants
Owner

erikjohnston commented Nov 3, 2016 edited by NegativeMjark

This is because GIN can be slow to write to, especially when the table
gets large.

Replace postgres GIN with GIST
This is because GIN can be slow to write too, especially when the table
gets large.
synapse/storage/search.py
+ c = conn.cursor()
+
+ # We create with NULLS FIRST so that when we search *backwards*
+ # we get the ones with non null origin_server_ts *first*
@NegativeMjark

NegativeMjark Nov 3, 2016

Contributor

Is this comment accurate?

Contributor

NegativeMjark commented Nov 3, 2016

Other than the possibly spurious comment, LGTM.

Contributor

NegativeMjark commented Nov 3, 2016

LGTM

@erikjohnston erikjohnston merged commit 06cc0bb into develop Nov 3, 2016

5 of 10 checks passed

Sytest Dendron (Commit) Build #1080 origin/erikj/postgres_gist in progress...
Details
Sytest Dendron (Merged PR) Build started sha1 is merged.
Details
Sytest Postgres (Commit) Build #1919 origin/erikj/postgres_gist in progress...
Details
Sytest Postgres (Merged PR) Build started sha1 is merged.
Details
Sytest SQLite (Merged PR) Build started sha1 is merged.
Details
Flake8 + Packaging (Commit) Build #2012 origin/erikj/postgres_gist succeeded in 1 min 14 sec
Details
Flake8 + Packaging (Merged PR) Build finished.
Details
Sytest SQLite (Commit) Build #1963 origin/erikj/postgres_gist succeeded in 6 min 2 sec
Details
Unit Tests (Commit) Build #2043 origin/erikj/postgres_gist succeeded in 2 min 53 sec
Details
Unit Tests (Merged PR) Build finished.
Details

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

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