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

Add a default limit to get/sync operations #7858

Merged
merged 5 commits into from
Jul 17, 2020
Merged

Conversation

clokep
Copy link
Member

@clokep clokep commented Jul 15, 2020

This changes the default value of filter_timeline_limit from -1 (no limit) to 500. The 500 was chosen mostly arbitrarily, but could probably use some more thought of what it should be!

Fixes #7733

@clokep clokep requested a review from a team July 15, 2020 19:00
Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably vote for something like 50 or 100

@clokep
Copy link
Member Author

clokep commented Jul 17, 2020

I'd probably vote for something like 50 or 100

I figured there'd be some bikeshedding about the number. I can reduce it if you think that's appropriate?

@erikjohnston
Copy link
Member

I'd vote so, I don't have strong opinions though

changelog.d/7858.misc Outdated Show resolved Hide resolved
@clokep clokep merged commit 852930a into develop Jul 17, 2020
@clokep clokep deleted the clokep/sync-limit branch July 17, 2020 11:59
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit 'de119063f': (31 commits)
  Convert room list handler to async/await. (#7912)
  Element CSS and logo in email templates (#7919)
  Lint the contrib/ directory in CI and linting scripts, add synctl to linting script (#7914)
  Remove unused code from synapse.logging.utils. (#7897)
  Fix a typo in the sample config. (#7890)
  Fix deprecation warning: import ABC from collections.abc (#7892)
  Change sample config's postgres user to synapse_user (#7889)
  Fix deprecation warning due to invalid escape sequences (#7895)
  Remove Ubuntu Eoan that is now EOL (#7888)
  Fix the trace function for async functions. (#7872)
  Add help for creating a user via docker (#7885)
  Switch to Debian:Slim from Alpine for the docker image (#7839)
  Stop using 'device_max_stream_id' (#7882)
  Fix TypeError in synapse.notifier (#7880)
  Add a default limit (of 100) to get/sync operations. (#7858)
  Change "unknown room ver" logging to warning. (#7881)
  Convert device handler to async/await (#7871)
  Convert synapse.app to async/await. (#7868)
  Convert _base, profile, and _receipts handlers to async/await (#7860)
  Add admin endpoint to get members in a room. (#7842)
  ...
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.

initialsync with huge limit takes out an initialsynchrotron
2 participants