CosmosStore: Add raw event counts to `eqx stats`
Open
enhancement
up-for-grabs
- Dominant language
- F#
- Stars
- 501
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
`eqx stats cosmos` determines the event counts by assuming the `n` value of the `Tip` (`-1`) document matches then number of events stored in the other batch documents within any given stream.
This assumption is broken when pruning is in effect (see #226); the solution is to sum `n`-`i` for all documents.
It also makes it harder to demonstrate the degree to which pruning has had an effect in a given container.
Given this is a much more expensive query than the current one, we should consider:
- it should be added as a separate sub-option of the `stats` command
- it should probably not run in parallel with other queries ?
Contributor guide
Assessment
This issue has not been assessed yet.