Discussion Board for collaboration on QlikView Scripting.
I've build a report, but unfortunatly the query execution time is just too long - over one minute.
I've tried already to optimize the model, but without any success.
The biggest table I have is about 500'000'000 rows. And I have tested following models:
The last thing which might help is to join calendar to the fact table...
Otherwise I see only the way to split the table in different parts and create different reports.
Actually I did it already and split it in years, but the execution time is only acceptable when I split it in 4 month periods (execution time around 8 sec).
What can I do in order to optimize the model/report/execution time???
Go to Solution.
Yes it will sure help.
Try to transfer all your calculations which you are doing at chart level to script.
Also make sure that you are not using the count(),Count(if...), sum(if...), if(..,count())... statements in charts.
this are listed a extreme resource intensive functions.
Maybe the long execution time lies on the front end side of things with complex expressions?
Any specific objects or metrics that take a long time to calculate?
What kind of hardware are you running this huge app on?
I dont think its because of the front end. There is only one diagramm with xAxis= MeasureTimeStamp and yAxis=ActualValue.
The explained data is data from production-machines and its huge because every part produced brings a lot of parameterdata along with it.
Hardware: Intel® Xeon® Processor E5645 @2.4 Ghz @2.4 Ghz (6Core) And 16 gb RAM
Oh, ok, so when you say "query execution time" you refer to the time it takes to run the script when hitting reload?
Or do you mean the time it takes for the chart to calculate in the front end?
Well basically both are taking too long, but im referring to the 2nd issue:
The chart calculation takes too long
While searching through some similar threads I found a document analyzer:
And I've executed it on the document. Hope it helps:
Please verify the following idea:
The main problems are fields Stichprobe (number of a sample) and Messzeitpunkt (timestamp).
What I can do is:
1) Format the Messzeitpunkt already in the DLP. (Until now I'm formating it in the diagramm
Time(Messzeitpunkt, 'YYYY.MM.DD hh:mm')
2) Stichprobe is just a number and anyhow we are not searching for it. It is also not unique as it contans also sample measurement numbers. So basically I can at the end just leave it out.
3) In case I cant leace the Stichprobe out - I can create an autonumber...
What do you think - will it help?