summary refs log tree commit diff
path: root/synapse/storage/search.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-11-03 15:04:32 +0000
committerErik Johnston <erik@matrix.org>2016-11-03 15:04:32 +0000
commit64c65669804fa137fe7b7be3a589349b50348a3e (patch)
treef6b8b8a10cebf13cf74af7e3ca1c0eae85f916b9 /synapse/storage/search.py
parentReplace postgres GIN with GIST (diff)
downloadsynapse-64c65669804fa137fe7b7be3a589349b50348a3e.tar.xz
Remove spurious comment
Diffstat (limited to '')
-rw-r--r--synapse/storage/search.py4
1 files 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):