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

Audit the need of the data being queried for session response #229

Open
2 tasks
rathorevaibhav opened this issue Aug 25, 2021 · 1 comment
Open
2 tasks

Comments

@rathorevaibhav
Copy link
Contributor

Describe the task
We're querying several tables when sending a session response. These queries must be running for both session create and update requests. The latter is called every 10sec on the Player page, which might lead to unnecessary load on the DB server.
image

I still need to verify but this might be the reason for the backend failing to respond when under a huge amount of load from K6.

Expected behavior

  • Propose a solution that can help with reducing the redundant queries or a faster performance (caching?)
  • See if there's a way (like GraphQL) where the query response data can be controlled by the requestor.
@rathorevaibhav
Copy link
Contributor Author

Results from Silk query profiler

Session Create request (local):
image

Session Update request (local):
image

These are definitely ultra-expensive queries.

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

1 participant