By default, we currently allow a user to retrieve all responses from a thread, which is terrible from a performance standpoint. This change adds a default response size of 100, which was chosen to match typical production pagination parameters, and a response limit of 200. Given that responses can include children comments, 200 is still a large number, but far less disastrous than, say, getting 3000 responses, with all of their children comments. Both of these values are configurable, and can be overriden via environment variables.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| abuse_spec.rb | Loading commit data... | |
| comment_spec.rb | Loading commit data... | |
| comment_thread_spec.rb | Loading commit data... | |
| commentable_spec.rb | Loading commit data... | |
| i18n_spec.rb | Loading commit data... | |
| notifications_and_subscriptions_spec.rb | Loading commit data... | |
| notifications_spec.rb | Loading commit data... | |
| query_spec.rb | Loading commit data... | |
| search_spec.rb | Loading commit data... | |
| user_spec.rb | Loading commit data... | |
| vote_spec.rb | Loading commit data... |