Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
I have a expression take about 3 second to display report , it display hour glass :-
Money(
Sum(Aggr(SUM({<year = {"$(=Max(year)-0)"},month={"<=$(=Max({<sales = {'*'}, year = {$(=Max(year))}>}month))"},GL_SELECT={ $(ColumnDim901) }>}Amount*1)/1/1000, $(ColumnDim108)))
,$(vMoneyFormatK))
May i know the delay is cause by what ? it there a way i can avoid waiting ?
Paul Yeo
Hi All
I mean when i click on Pls select Dimension 2. after it load all data into ram , next time when i click it will be fast.
Enclosed my QVW.
Paul
Let me explain what is going on, hopefully that will clear things up... The initial calculation is the actual calculation of the object, and 3 seconds is pretty good depending upon the data model and expression etc. The reason things seem instantaneous on subsequent selections of the same Dimension is we are using a cached calculation image of things, one of the key points of the product, once we run a calculation set, it is cached provided there is memory space available, an algorithm determines which cached items to remove when memory is needed but basically think of it as older/less used items drop first. Hopefully this answers your underlying questions as to why it is so quick on the subsequent selections.
That being said, if you want things to be fast, the only thing you could do is use something jMeter etc. to open the app(s) and run a script to do selections etc. to get those items pre-cached before the users get into the environment. I do not think 3 seconds is a long wait at all though, so I am not sure the effort of pre-caching is likely worth it in this use case.
Regards,
Brett
The following Support Article may help a bit more as well, sorry I did not think to put it on the last post:
Regards,
Brett