akvaplan-niva / dois

Akvaplan-niva DOI register
https://dois.deno.dev
0 stars 0 forks source link

Add mem caching #30

Closed cnrdh closed 1 year ago

cnrdh commented 1 year ago

Without mem caching, the time penalty is ~2-3 seconds for readling just 1.2MB of data in ca. 1600 docs using kv.list: https://github.com/akvaplan-niva/dois/blob/9d3094f2b22e1c22fab08fe757b5b5ff6bf26c7e/deno/doi.js#L62

The following (grouped by year) runs in just ~150ms: https://dois.deno.dev/group/published/substring/0,4

cnrdh commented 1 year ago

Before: image After: image