mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-26 06:03:11 +00:00
Only fetch the columns we need.
This commit is contained in:
1 parent
9e5545a6fa
commit
fd9a8db7ea
1 file changed
+1
-1
@@ -271,7 +271,7 @@ class StreamStore(SQLBaseStore):
|
||||
# TODO (erikj): Handle compressed feedback
|
||||
|
||||
sql = (
|
||||
"SELECT * FROM events "
|
||||
"SELECT stream_ordering, topological_ordering, event_id FROM events "
|
||||
"WHERE room_id = ? AND stream_ordering <= ? AND outlier = 0 "
|
||||
"ORDER BY topological_ordering DESC, stream_ordering DESC LIMIT ? "
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user