mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-03-04 00:39:12 -05:00
Comment
This commit is contained in:
parent
320408ef47
commit
764e79d051
@ -252,6 +252,8 @@ class SearchStore(BackgroundUpdateStore):
|
|||||||
" WHERE vector @@ query AND room_id = ?"
|
" WHERE vector @@ query AND room_id = ?"
|
||||||
)
|
)
|
||||||
elif isinstance(self.database_engine, Sqlite3Engine):
|
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 = (
|
sql = (
|
||||||
"SELECT rank(matchinfo) as rank, room_id, event_id,"
|
"SELECT rank(matchinfo) as rank, room_id, event_id,"
|
||||||
" topological_ordering, stream_ordering"
|
" topological_ordering, stream_ordering"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user