VEuPathDB / VEuPathDB/study-wrangler

Add caching to `get_hydrated_variable_metadata()`

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.