Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix incredibly slow back pagination query #1178

Merged
merged 2 commits into from
Oct 24, 2016

Conversation

erikjohnston
Copy link
Member

If a client didn't specify a from token when paginating backwards
synapse would attempt to query the (global) maximum topological token.
This a) doesn't make much sense since they're room specific and b) there
are no indices that lets postgres do this efficiently.

If a client didn't specify a from token when paginating backwards
synapse would attempt to query the (global) maximum topological token.
This a) doesn't make much sense since they're room specific and b) there
are no indices that lets postgres do this efficiently.
@erikjohnston erikjohnston changed the title Fix incredubly slow back pagination query Fix incredibly slow back pagination query Oct 24, 2016
@NegativeMjark
Copy link
Contributor

LGTM

@erikjohnston erikjohnston merged commit e83a08d into develop Oct 24, 2016
@richvdh richvdh deleted the erikj/current_room_token branch December 1, 2016 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants