Skip to content

Commit

Permalink
add some debug logging to see how many writes we do per batch
Browse files Browse the repository at this point in the history
  • Loading branch information
John Sanda committed Sep 8, 2015
1 parent 419a9ce commit 1a12172
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,8 @@ public <T> Observable<Void> addDataPoints(MetricType<T> metricType, Observable<M

Observable<Integer> tenantUpdates = updateTenantBuckets(metrics);

Observable<Integer> indexUpdates = dataAccess.updateMetricsIndex(metrics);
Observable<Integer> indexUpdates = dataAccess.updateMetricsIndex(metrics)
.doOnNext(batchSize -> logger.debug("Inserted {} {} metrics into metrics_idx", batchSize, metricType));
return Observable.concat(updates, indexUpdates, tenantUpdates)
.takeLast(1)
.map(count -> null);
Expand Down

0 comments on commit 1a12172

Please sign in to comment.