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

map contour in db for speed and use in API and app #7

Open
bbest opened this issue Dec 16, 2022 · 1 comment
Open

map contour in db for speed and use in API and app #7

bbest opened this issue Dec 16, 2022 · 1 comment

Comments

@bbest
Copy link
Contributor

bbest commented Dec 16, 2022

PROBLEM: map_contours() in R too slow

The calcofi4r::map_contours() (example, documentation) is finally the "right" level of detail to map interpolated values so as to show an overall trend. This moreso than earlier iterations of the app's map visualization using individual points of oceano app or interpolated rasters of oceano-demo as discovered through "co-design" with Jenn & Erin. However, the bivariate GAM smooth runs in R and this is slow to render: 5-20 seconds.

image

SOLUTION: ST_Contour() in Database

We could implement a button with an estimated progress bar, spinny wheel and/or ETA.

Or we could try run this in the database, which should be much faster:

@bbest bbest changed the title map contour in database for speed and use in API and app map contour in db for speed and use in API and app Dec 16, 2022
@bbest bbest added this to Management Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant