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

Use of CacheKeys in plots and tables #14

Open
cabaJr opened this issue Mar 5, 2023 · 0 comments
Open

Use of CacheKeys in plots and tables #14

cabaJr opened this issue Mar 5, 2023 · 0 comments

Comments

@cabaJr
Copy link
Owner

cabaJr commented Mar 5, 2023

Re-implement the use of cache keys to compare new requests for plots. When the generate button is pressed on a plot selection, the code should compare the hash (generated with digest::digest(x, "xxhash64") ) of the settings previously sent, with the hash of the new settings.

If the two cache keys are identical, do not recompute the plot but re-load the previous one. Need to create a function that creates the hash key given the plot setting and dataset. if the dataset is changed (i.e. new files are added, not supported at the moment) the key should be invalidated as there is a new cacheKey for the dataset

create the function in Annotate and it should compare the cacheKeys of "Dataset", and "parameters" (including plot type, data range if subsetting data, ids, etc)

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