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

Switch the count in each VueX method for getting entity totals #25

Merged
merged 1 commit into from
May 12, 2020

Conversation

bloqhead
Copy link
Contributor

@bloqhead bloqhead commented May 7, 2020

This branch should be used in conjunction with #723 in the Kuma repo.

This change updates each total count method in the VueX actions to use the total parameter from the HTTP API. Each request is also modified to only use a size parameter of 1 so that we are not also needlessly fetching a list of entities when we only need the total. This helps reduce API request sizes.

Running Kuma in Universal mode with 20,000 Meshes:

  • Size: 100 (the default max) - 17.24kb, ~8ms
  • Size: 1 - 256b, ~4ms

(the above was tested in Firefox)

…the new total field in the HTTP API endpoints. also set each request to only get 1 item for the size parameter so that we are not needlessly getting a list of items on each call. this makes each request significantly smaller.
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

Successfully merging this pull request may close these issues.

1 participant