Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joined Channels REST API response too big/slow #8891

Closed
luciofm opened this issue Nov 17, 2017 · 3 comments
Closed

Joined Channels REST API response too big/slow #8891

luciofm opened this issue Nov 17, 2017 · 3 comments
Assignees
Milestone

Comments

@luciofm
Copy link

luciofm commented Nov 17, 2017

Description:

Currently /api/v1/channels.list.joined will return an array with all joined usernames, and an array with muted usernames
This is a test user only joined on #general

curl -H "X-Auth-Token: xxxx" -H "X-User-Id: xxxx" https://demo.rocket.chat/api/v1/channels.list.joined
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3357k    0 3357k    0     0   305k      0 --:--:--  0:00:11 --:--:--  607k

channels.list is also impacted by this and will return huge responses when returning big channels.

groups.list also has this problem, but usually groups are much smaller.

@JSzaszvari
Copy link
Contributor

How many users do you have? What is your setup?

Total response time with 2000 users on my instance is

198 ms for channels.list.joined
208 ms for channels.list
180 ms for groups.list

@graywolf336
Copy link
Contributor

@JSzaszvari Pulling the open.rocket.chat server's #general channel will result in this massive result where there are 158,479 users.

@graywolf336
Copy link
Contributor

Will be resolved with #8947 and with a new message to developers about the change until 0.64 hits.

@rodrigok rodrigok added this to the 0.60.0 milestone Dec 6, 2017
@rodrigok rodrigok closed this as completed Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants