Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Manish_Kumar_
Creator
Creator

Set Analysis: Which is faster p() or 'frontend variable'

Hi,

I have an app with slow performance and my target is to optimize it on the frontend.
One doubt I have is- 
Which one of below is faster

sum({<Field=p(InlineTable)>} Amount)

OR

sum({<Field={"$(vFrontEndDeclaredVar)"}>}Amount)

 

Manish Kumar, Senior Business Analyst
Labels (3)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Second option, becasue that way qlik engine wouldn't have to evaluate another field possible values; also you could get rid of island table in data model whcih helps in performance. However, there is a catch, if you are going to use variable with expression definition, you also have to consider it's complexity.

View solution in original post

4 Replies
tresesco
MVP
MVP

Second option, becasue that way qlik engine wouldn't have to evaluate another field possible values; also you could get rid of island table in data model whcih helps in performance. However, there is a catch, if you are going to use variable with expression definition, you also have to consider it's complexity.

Manish_Kumar_
Creator
Creator
Author

Hey @tresesco 

How "could getting rid of island table in data model will help in performance"?? I mean what impact they could have on performance as soon as we are not using them on frontend calculations.

Please assist me here!

Manish Kumar, Senior Business Analyst
tresesco
MVP
MVP

If you don't use them in UI, then there is no significant performance issue. However, if you happen to use them, specially in a  structure like - Sum(If... you would notice performance drop; worse it becomes with more data in table. This is because, in such scenarios qlik engine produces cross-join before it start evaluating the expression. Hence it's better to avoid island tables when feasible.

Manish_Kumar_
Creator
Creator
Author

Thank You @tresesco
Appreciate your response!

Manish Kumar, Senior Business Analyst