Approximate percentiles
URL: llms-txt#approximate-percentiles
Contents:
- Run an approximate percentage query
- Running an approximate percentage query
TimescaleDB uses approximation algorithms to calculate a percentile without requiring all of the data. This also makes them more compatible with continuous aggregates.
By default, TimescaleDB Toolkit uses uddsketch, but you can also choose to use tdigest. For more information about these algorithms, see the [advanced aggregation methods][advanced-agg] documentation.