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

Global Victory Aggregate taking 2+ seconds to respond #286

Open
Maelstromeous opened this issue May 19, 2022 · 0 comments
Open

Global Victory Aggregate taking 2+ seconds to respond #286

Maelstromeous opened this issue May 19, 2022 · 0 comments
Labels
bug Something isn't working enhancement New feature or request p2 Disruptive issues but not show stoppers
Milestone

Comments

@Maelstromeous
Copy link
Member

This aggregate loads a lot of the homepage statistics and it's extremely under performant. It's currently cached by Redis but I believe that it's ineffective and isn't caching properly.

This appears to have been worsened by the recent database migration.

Solution 1:

  1. Set the TTL to 24 hours for the aggregate on the endpoint
  2. Using the new internal API call, have it invalidate the cache upon instance end
  3. Regenerate the cache

Solution 2:

  1. Investihate why the query is taking so long to respond in Mongo.
  2. Attempt to fix the issue.

Solution 3:

  1. Implement pagination on the endpoint and the website, and bring the data in chunks
@Maelstromeous Maelstromeous added bug Something isn't working enhancement New feature or request p2 Disruptive issues but not show stoppers labels May 19, 2022
@Maelstromeous Maelstromeous added this to the API v4.1 milestone May 19, 2022
@Maelstromeous Maelstromeous self-assigned this May 19, 2022
@Maelstromeous Maelstromeous modified the milestones: API v4.1, API v4.2 May 31, 2022
@Maelstromeous Maelstromeous removed their assignment Jul 27, 2022
@Maelstromeous Maelstromeous modified the milestones: API v4.2, API vTBC Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request p2 Disruptive issues but not show stoppers
Projects
Status: Todo
Development

No branches or pull requests

1 participant