From d55261aac765e8234c90ef7b3000158d48a967c1 Mon Sep 17 00:00:00 2001 From: Andrej Ocenas Date: Fri, 13 Sep 2019 15:32:53 +0200 Subject: [PATCH] Explore: Move throttling before processing (#19095) --- public/app/features/explore/state/actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/explore/state/actions.ts b/public/app/features/explore/state/actions.ts index b6de5dbd0e5..46ac0a9331b 100644 --- a/public/app/features/explore/state/actions.ts +++ b/public/app/features/explore/state/actions.ts @@ -482,11 +482,11 @@ export function runQueries(exploreId: ExploreId): ThunkResult { const newQuerySub = runRequest(datasourceInstance, transaction.request) .pipe( - map((data: PanelData) => preProcessPanelData(data, queryResponse)), // Simple throttle for live tailing, in case of > 1000 rows per interval we spend about 200ms on processing and // rendering. In case this is optimized this can be tweaked, but also it should be only as fast as user // actually can see what is happening. - live ? throttleTime(500) : identity + live ? throttleTime(500) : identity, + map((data: PanelData) => preProcessPanelData(data, queryResponse)) ) .subscribe((data: PanelData) => { if (!data.error && firstResponse) {