New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache date range filters that use now
with rounding
#4947
Comments
good one :) |
It depends. Wouldn't it be just as confusing around midnight? Where just after midnight you might not see data? I agree it's much less of an issue but in certain scenarios you may still get wrong results. On Thu, Jan 30, 2014 at 4:46 AM, uboness notifications@github.com wrote:
|
@bleskes This isn't about wrong results - it's about cache churn. The filter is cached with whatever But a filter with
You want the first filter to be cached, and the second filter not to be cached. |
Could we resolve the expression with |
That is what used to happen, but since now is different every time, the next time |
@clintongormley misunderstood then (and learned something about how our internal caching works: @imotov - the caching logic compares the term the expression resolves to) |
…expression should only be active if no rounding has been specified for `now` in the date range range expression (for example: `now/d`). Also the automatic now detection in range filters is overrideable by the `_cache` option. Closes elastic#4947 Relates to elastic#4846
…expression should only be active if no rounding has been specified for `now` in the date range range expression (for example: `now/d`). Also the automatic now detection in range filters is overrideable by the `_cache` option. Closes elastic#4947 Relates to elastic#4846
…expression should only be active if no rounding has been specified for `now` in the date range range expression (for example: `now/d`). Also the automatic now detection in range filters is overrideable by the `_cache` option. Closes elastic#4947 Relates to elastic#4846
In #4846, caching of date range filters which use
now
was disabled. However, that only makes sense as long as there is no rounding happening.For instance, this filter does make sense to cache:
The text was updated successfully, but these errors were encountered: