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

Improve performance of queries filtering by single enttiy #335

Closed
muety opened this issue Mar 12, 2022 · 0 comments
Closed

Improve performance of queries filtering by single enttiy #335

muety opened this issue Mar 12, 2022 · 0 comments

Comments

@muety
Copy link
Owner

muety commented Mar 12, 2022

  1. if filters == nil || filters.IsEmpty() {
    -> for single-entity filters, we can just fetch the summary
  2. durations, err := srv.durationService.Get(from, to, user, filters)
    -> for single-entity filters, we can let the database handle filtering

Will especially improve performance of the badges endpoint, as not all heartbeats of that user within that interval have to be fetched.

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