Last activity: 11 Jul 2018 7:22 EDT
Declare expression is taking more than 2 mins
I have a declare expression as below .
Set DisplayBadgePhotoLink= value of "https://internal.com/badgephotos.amazon.com/?uid="+.ApproverID
This has backward chaining whenever used. This expression takes 2 mins and leads to latency issues.
PFA tracer screen shot.
Can you confirm if the property you are using is in Pagelist(Seems like Yes, looking at the tracer snapshot?
Yes Bhavya its in pagelist.
Will referring from Pagelist be the issue? I tried to load the image using a custom control instead of declare expression. This worked well, i dont see any latency.
But i want to understand why declare expression was so slow.
I observed that pxicon was taking time to load an image if i used a property as input to pxicon control. Can some one help me understand why it took more time.
Is it possible for you to take a network race/fiddler and attach it here?
Looks like you are getting the image from a different web site. ("https://internal.com/badgephotos.amazon.com/?uid="+.ApproverID)
I don't see there is an issue with declare expression, but on UI its taking time to load the image from other system. Is the other system fast enough, could you try loading this url in a browser and see how is the response time. If the response is slow, then we couldn't do anything to fix this latency.
When i used custom control it was quiet fast . When i try to open the image directly it loads fast and its 4kb size image.
What is the code that you have written in custom control? if possible share the code.
Can you try tracing some other declare expression in your system, if that is also slow then there is some issue in the system which we need to debug.
Team, can you please help me on this.
Can you please furnish the complete scenario where it takes time.
How many times are you trying to refer this property.