Only fetch the columns we need.

pull/105/head
Erik Johnston 2015-01-06 15:59:31 +00:00
parent 9e5545a6fa
commit fd9a8db7ea
1 changed files with 1 additions and 1 deletions

View File

@ -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 ? "
)