mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-25 11:24:20 +01:00
Only fetch the columns we need.
This commit is contained in:
parent
9e5545a6fa
commit
fd9a8db7ea
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ class StreamStore(SQLBaseStore):
|
||||||
# TODO (erikj): Handle compressed feedback
|
# TODO (erikj): Handle compressed feedback
|
||||||
|
|
||||||
sql = (
|
sql = (
|
||||||
"SELECT * FROM events "
|
"SELECT stream_ordering, topological_ordering, event_id FROM events "
|
||||||
"WHERE room_id = ? AND stream_ordering <= ? AND outlier = 0 "
|
"WHERE room_id = ? AND stream_ordering <= ? AND outlier = 0 "
|
||||||
"ORDER BY topological_ordering DESC, stream_ordering DESC LIMIT ? "
|
"ORDER BY topological_ordering DESC, stream_ordering DESC LIMIT ? "
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue