From 97989d969c61e90ee4ef456e9d53511698a24874 Mon Sep 17 00:00:00 2001 From: HollyFang Date: Tue, 14 May 2019 10:54:39 +0800 Subject: [PATCH] Don't update unless the datahas changed, otherwise there will be performance problems when the data is large --- ui/src/app/api/subscription.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/app/api/subscription.js b/ui/src/app/api/subscription.js index 0927c5ce66..2e3affceba 100644 --- a/ui/src/app/api/subscription.js +++ b/ui/src/app/api/subscription.js @@ -674,6 +674,10 @@ export default class Subscription { } } } + else if(angular.toJson(currentData.data)==angular.toJson(sourceData.data)){ + update = false; + } + if (update) { if (this.subscriptionTimewindow && this.subscriptionTimewindow.realtimeWindowMs) { this.updateTimewindow();