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

Reduce list size payload #10

Open
mgwidmann opened this issue Sep 21, 2017 · 0 comments
Open

Reduce list size payload #10

mgwidmann opened this issue Sep 21, 2017 · 0 comments

Comments

@mgwidmann
Copy link
Owner

On https://github.com/mgwidmann/slack_coder the payload size can get quite large when a large number of incidents happen. i.e. almost 5000 times a foreign key constraint failed, in addition to about 20 total error objects it produced 8.9MB of JSON returned from the API. Using the inspector, Chrome was having trouble parsing the response body 😄 in the network tab.

To reduce the payload size, instead return just the first message plus the count of how many incidents there are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant