VEuPathDB / VEuPathDB/study-wrangler
Add caching to `get_hydrated_variable_metadata()`
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 0
- Forks
- 0
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 1
Description
Use library(digest) (core package 🎉 ) - create digest of both data and variable metadata - in fact the whole object would be good (entity name affects data hydration)
cache_key <- digest(entity)
It's very quick - even on a real-life dataset.
Use a single-entry cache.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating get_hydrated_variable_metadata() and reading how it hydrates data and variable metadata. Use digest(entity) as the cache key and verify that the implementation keeps only one cached entry; done means repeated calls for the same entity can reuse the cached result while a different entity replaces it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100