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

Parallelize queries for distance and calories in query() in Android #294

Open
dariosalvi78 opened this issue Aug 18, 2023 · 3 comments
Open
Labels
enhancement feature request help wanted I am not sure I can solve this, help needed!

Comments

@dariosalvi78
Copy link
Owner

dariosalvi78 commented Aug 18, 2023

remove Tasks.wait() and run queries in parallel instead. This can likely speed up the multiple queries done when getting activities with distance and calories in Android. Unfortunately there is no trivial way to do it.

@juanmaldonadodev
Copy link

@dariosalvi78 I think that would be helpful to be able to just get calories and not distance. So that way we can request calories without request 'location' permissions to the user.

@dariosalvi78
Copy link
Owner Author

dariosalvi78 commented Aug 30, 2023

I agree, but it requires some changes, happy to receive a pull request if anybody wants to fix it

@juanmaldonadodev
Copy link

thanks @dariosalvi78 I have no experience working with plugins.

@dariosalvi78 dariosalvi78 added enhancement feature request help wanted I am not sure I can solve this, help needed! labels Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature request help wanted I am not sure I can solve this, help needed!
Projects
None yet
Development

No branches or pull requests

2 participants