diff options
author | Erik Johnston <erik@matrix.org> | 2015-01-06 15:59:31 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-01-06 15:59:31 +0000 |
commit | fd9a8db7ea93225af1774a604a97e84315cdccc8 (patch) | |
tree | 495bcc8fee415b69b7358b86d5248297398fa455 /synapse/storage | |
parent | RoomsForUser now has sender instead of user_id (diff) | |
download | synapse-fd9a8db7ea93225af1774a604a97e84315cdccc8.tar.xz |
Only fetch the columns we need.
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/stream.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py index a5e1c38f75..bedc3c6c52 100644 --- a/synapse/storage/stream.py +++ b/synapse/storage/stream.py @@ -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 ? " ) |