samply / blaze

A FHIR® Server with internal, fast CQL Evaluation Engine
https://samply.github.io/blaze
Apache License 2.0
141 stars 19 forks source link

Add Estimated Number of Keys Function #1817

Closed alexanderkiel closed 2 weeks ago

alexanderkiel commented 2 weeks ago

We need this functionality for all key-value instead of only for RocksDB because we will use it in the CQL expression cache.

Needed in: #1051

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.19%. Comparing base (4497165) to head (994694d). Report is 1 commits behind head on develop.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/samply/blaze/pull/1817/graphs/tree.svg?width=650&height=150&src=pr&token=tuYGGhSxBX&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=samply)](https://app.codecov.io/gh/samply/blaze/pull/1817?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=samply) ```diff @@ Coverage Diff @@ ## develop #1817 +/- ## ======================================== Coverage 96.19% 96.19% ======================================== Files 271 271 Lines 17342 17350 +8 Branches 347 347 ======================================== + Hits 16682 16690 +8 Misses 313 313 Partials 347 347 ``` | [Files](https://app.codecov.io/gh/samply/blaze/pull/1817?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=samply) | Coverage Δ | | |---|---|---| | [modules/admin-api/src/blaze/admin\_api.clj](https://app.codecov.io/gh/samply/blaze/pull/1817?src=pr&el=tree&filepath=modules%2Fadmin-api%2Fsrc%2Fblaze%2Fadmin_api.clj&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=samply#diff-bW9kdWxlcy9hZG1pbi1hcGkvc3JjL2JsYXplL2FkbWluX2FwaS5jbGo=) | `98.03% <100.00%> (ø)` | | | [modules/kv/src/blaze/db/kv.clj](https://app.codecov.io/gh/samply/blaze/pull/1817?src=pr&el=tree&filepath=modules%2Fkv%2Fsrc%2Fblaze%2Fdb%2Fkv.clj&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=samply#diff-bW9kdWxlcy9rdi9zcmMvYmxhemUvZGIva3YuY2xq) | `100.00% <100.00%> (ø)` | | | [modules/kv/src/blaze/db/kv/mem.clj](https://app.codecov.io/gh/samply/blaze/pull/1817?src=pr&el=tree&filepath=modules%2Fkv%2Fsrc%2Fblaze%2Fdb%2Fkv%2Fmem.clj&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=samply#diff-bW9kdWxlcy9rdi9zcmMvYmxhemUvZGIva3YvbWVtLmNsag==) | `100.00% <100.00%> (ø)` | | | [modules/kv/src/blaze/db/kv/protocols.clj](https://app.codecov.io/gh/samply/blaze/pull/1817?src=pr&el=tree&filepath=modules%2Fkv%2Fsrc%2Fblaze%2Fdb%2Fkv%2Fprotocols.clj&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=samply#diff-bW9kdWxlcy9rdi9zcmMvYmxhemUvZGIva3YvcHJvdG9jb2xzLmNsag==) | `100.00% <ø> (ø)` | | | [modules/rocksdb/src/blaze/db/kv/rocksdb.clj](https://app.codecov.io/gh/samply/blaze/pull/1817?src=pr&el=tree&filepath=modules%2Frocksdb%2Fsrc%2Fblaze%2Fdb%2Fkv%2Frocksdb.clj&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=samply#diff-bW9kdWxlcy9yb2Nrc2RiL3NyYy9ibGF6ZS9kYi9rdi9yb2Nrc2RiLmNsag==) | `99.36% <100.00%> (+<0.01%)` | :arrow_up: |