TDIGEST.CREATE
Syntax
TDIGEST.CREATE key [COMPRESSIONÂ compression]
- Available in:
- Redis Stack / Bloom 2.4.0
- Time complexity:
- O(1)
Allocate memory and initialize a t-digest sketch.
Parameters:
- key: The name of the sketch (a t-digest data structure)
Optional parameters:
- COMPRESSION: The compression parameter. 100 is a common value for normal uses. 1000 is extremely large. If no value is passed by default the compression will be 100. Further notes bellow.
Further notes on compression vs accuracy: Constructing a t-digest sketch requires a compression parameter, which determines the size of the digest and accuracy of quantile estimation. For more information on scaling of accuracy versus the compression parameter see The t-digest: Efficient estimates of distributions.
Return
Simple string reply - OK
if executed correctly, or Error reply otherwise.
Examples
redis> TDIGEST.CREATE t-digest 100
OK
Feedback
If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.