Closed dseurotech closed 1 month ago
Attention: Patch coverage is 87.50000%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 52.30%. Comparing base (
f15c972
) to head (997258e
). Report is 11 commits behind head on release-1.7.x.
This pr adds a configuration switch that allows to skip a costly (and potentially unneccesary) fetch from elasticsearch currently performed for each metric not present in the cache (very inefficient in case of device messages with a lot of metrics). The behaviour can me configured by the following parameter:
datastore.cache.metrics.fetchBeforeUpsert=true
omit the configuration or leave at 'true' to maintain the current behaviour, set to 'false' to skip the fetch