Skip to content
Snippets Groups Projects
Commit 764e79d0 authored by Erik Johnston's avatar Erik Johnston
Browse files

Comment

parent 320408ef
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment