Question
IN
Last activity: 11 Jul 2018 7:22 EDT
Declare expression is taking more than 2 mins
Hi Team,
I have a declare expression as below .
Set DisplayBadgePhotoLink= value of "https://internal.com/badgephotos.amazon.com/?uid="+.ApproverID
PFA images.
This has backward chaining whenever used. This expression takes 2 mins and leads to latency issues.
Please help.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
IN
PFA tracer screen shot.
Coforge DPA
GB
Hi
Can you confirm if the property you are using is in Pagelist(Seems like Yes, looking at the tracer snapshot?
Regards
Bhavya
IN
Yes Bhavya its in pagelist.
IN
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.
IN
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.
Pegasystems Inc.
US
Is it possible for you to take a network race/fiddler and attach it here?
Pegasystems Inc.
IN
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.
-
Alejandro Gallego Martinez
IN
Hello ,
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.
Regards
Pavani
-
Damith Pathirana
Pegasystems Inc.
IN
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.
IN
Team, can you please help me on this.
Pegasystems Inc.
IN
Hi There,
Can you please furnish the complete scenario where it takes time.
How many times are you trying to refer this property.
Regards,
Ujjwal