# Are these values right for Query delay, Frequency and Bucket Span?

**URL:** <https://discuss.elastic.co/t/are-these-values-right-for-query-delay-frequency-and-bucket-span/239498>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [July 1, 2020, 1:46pm UTC](https://discuss.elastic.co/t/are-these-values-right-for-query-delay-frequency-and-bucket-span/239498 "2020-07-01T13:46:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [July 3, 2020, 12:39pm UTC](https://discuss.elastic.co/t/are-these-values-right-for-query-delay-frequency-and-bucket-span/239498/4 "2020-07-03T12:39:12Z")

</div>

There are 3 important parameters: `bucket_span`, `query_delay`, and `frequency`

`bucket_span` is the analytics aggregation interval  
`frequency` is how often the data is queried via the datafeed  
`query_delay` is the total offset (from "now")

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/5/953ca8c39df8e3ebc91fd383a93211546914aef0.jpeg)

In other words, having a `query_delay` of `1d` doesn't make the query more expensive or the time range bigger. It is purely a lag behind real-time.

---

_[View the full topic](https://discuss.elastic.co/t/are-these-values-right-for-query-delay-frequency-and-bucket-span/239498)._
