1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-03-10 09:56:49 +00:00
This commit is contained in:
Erik Johnston 2015-11-12 15:19:56 +00:00
parent 320408ef47
commit 764e79d051

View file

@ -252,6 +252,8 @@ class SearchStore(BackgroundUpdateStore):
" WHERE vector @@ query AND room_id = ?"
)
elif isinstance(self.database_engine, Sqlite3Engine):
# We use CROSS JOIN here to ensure we use the right indexes.
# https://sqlite.org/optoverview.html#crossjoin
sql = (
"SELECT rank(matchinfo) as rank, room_id, event_id,"
" topological_ordering, stream_ordering"