You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2019/11/01 00:14:51 UTC
[GitHub] [incubator-pinot] bxji commented on a change in pull request #4761:
[TE] Centralized cache proof-of-concept for anomaly detection via Couchbase
bxji commented on a change in pull request #4761: [TE] Centralized cache proof-of-concept for anomaly detection via Couchbase
URL: https://github.com/apache/incubator-pinot/pull/4761#discussion_r341413281
##########
File path: thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/algorithm/DimensionWrapper.java
##########
@@ -238,6 +244,16 @@ public DetectionPipelineResult run() throws Exception {
this.config.getId(), nestedMetrics.size(), MAX_DIMENSION_COMBINATIONS));
}
+ // don't use in-memory cache for dimension exploration, it will cause thrashing
+ if (CacheConfig.useCentralizedCache()) {
+ if (this.cachingPeriodLookback >= 0) {
+ this.provider.fetchTimeseries(nestedMetrics.stream()
Review comment:
Yes, it's used to prefetch data for the detection and warm up the cache. It can be slow depending on the number of dimension combinations we need to make.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org