Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Reduce API queries #2

Open
dgarciabriseno opened this issue Sep 8, 2022 · 1 comment
Open

Reduce API queries #2

dgarciabriseno opened this issue Sep 8, 2022 · 1 comment

Comments

@dgarciabriseno
Copy link
Collaborator

Need to collaborate with https://github.com/Helioviewer-Project/api/
There should be an API that can take a bundle of IDs and return information about each one. This will greatly reduce the number of API requests currently being made.

Right now an API request is made for each timestamp that has been requested, this can be reduced by creating an API that accepts the source, date range, and cadence and returning a list of IDs

An API request is made for each image's position and jp2 header information. An API can be created that accepts a list of IDs and returns the positions for each, and a separate API that takes a list of IDs and returns the JP2 header information for each.

@dgarciabriseno
Copy link
Collaborator Author

The drawback to this is if we bundle API calls to happen on the server, it will take longer for the client to have anything to work with. Having it how it is where the queries are "as-needed" means the client is extremely responsive to user requests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant