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

The fetcher only fetches by single date, not by date ranges #16

Open
galeone opened this issue Feb 11, 2024 · 0 comments
Open

The fetcher only fetches by single date, not by date ranges #16

galeone opened this issue Feb 11, 2024 · 0 comments

Comments

@galeone
Copy link
Owner

galeone commented Feb 11, 2024

Being designed to fetch data from a single day, when we are fetching multiple days (think about a year or more!) we are executing AT LEAST N * k queries, where:

  • N: is the number of user data we store for the day (e.g. sleep for that day)
  • k: the number of days

At least, because for every (f *fetcher) user* method, we potentially run multiple queries (e.g. sub-activities, sleep stages, and all the other relationship).

This is not optimal and a better way to fetch the data should be designed

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