Skip to content

Remove temp cache table #377

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

melange396
Copy link
Collaborator

@melange396 melange396 commented Jan 14, 2021

(after successfully testing in prod)
dont forget to follow with: DROP TABLE `covidcast_meta_cache_test`;
#289

melange396 and others added 5 commits January 13, 2021 19:39
this is completely ignorant of re-issued data, so when a new issue of data happens, the cache may be somewhat stale and/or inaccurate.  the inaccuracies will probably be relatively small if the reissues are not wildly different than the previous issue.  also, those differences will get washed out as data series continue to grow in size.  a ~weekly full population of the cache should probably be done to clean up those inaccuracies.

this will break ingestion if new data is loaded before fully populating the cache with the existing data, because it expects a new field in the cache: 'num_points'.

the code is currently saving results to a 'test' cache table for comparing with the regular/main cache table.  TODOs have been included for lines that need to be reverted if/when testing is successful.

i have a feeling that the incremental changes could result in some loss of precision for the sd values, but i may just be paranoid.  theoretically, the results should be identical if floats have infinite precision.

changed 'Database.get_covidcast_meta()' to 'Database.compute_covidcast_meta()' for clarity
Co-authored-by: Katie Mazaitis <[email protected]>
(after successfully testing in prod)
dont forget to follow with: DROP TABLE `covidcast_meta_cache_test`;
Copy link
Contributor

@krivard krivard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we refresh this or trash it?

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

Successfully merging this pull request may close these issues.

2 participants