From 64c65669804fa137fe7b7be3a589349b50348a3e Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 3 Nov 2016 15:04:32 +0000 Subject: [PATCH] Remove spurious comment --- synapse/storage/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/storage/search.py b/synapse/storage/search.py index eae90c2fd8..8f2b3c4435 100644 --- a/synapse/storage/search.py +++ b/synapse/storage/search.py @@ -151,13 +151,13 @@ class SearchStore(BackgroundUpdateStore): conn.set_session(autocommit=True) 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* c.execute( "CREATE INDEX CONCURRENTLY event_search_fts_idx_gist" " ON event_search USING GIST (vector)" ) + c.execute("DROP INDEX event_search_fts_idx") + conn.set_session(autocommit=False) if isinstance(self.database_engine, PostgresEngine):