summary refs log tree commit diff
path: root/synapse/storage/stream.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-01-06 15:59:31 +0000
committerErik Johnston <erik@matrix.org>2015-01-06 15:59:31 +0000
commitfd9a8db7ea93225af1774a604a97e84315cdccc8 (patch)
tree495bcc8fee415b69b7358b86d5248297398fa455 /synapse/storage/stream.py
parentRoomsForUser now has sender instead of user_id (diff)
downloadsynapse-fd9a8db7ea93225af1774a604a97e84315cdccc8.tar.xz
Only fetch the columns we need.
Diffstat (limited to 'synapse/storage/stream.py')
-rw-r--r--synapse/storage/stream.py2
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 ? "
         )