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

Only fetch the columns we need.

parent 9e5545a6
No related branches found
No related tags found
No related merge requests found
......@@ -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 ? "
)
......
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