I have migrated our application from PB10 to PB21. In testing we noticed a process that was taking longer in PB21. Using profile tracing, I was able to isolate the problem to a section of code that changes dataobjects for 4 of the sub reports of a nested dataobjec. Here is a sample of the code (that is repeated 4 times):
adw_data.object.signature.dataobject = lds_parms.object.signature_dw[ll_parm_row]
The lds_parms datastore has only 67 rows. I tried using GetItemString for getting the lds_parms dataobject and still slow.
I tried using a modify statement instead of the dot notation for setting dataobject - still slow.
(adw_data.Modify("dw_signature.DataObject = ~"" + ls_dataobject + "~""))
When I looked at the profile trace the PB10 log showed for :
For the PB21 trace the log shows:
The code is the same. The dataobjects are the same. Any idea why it would take that long to swap dataobject. The reason it matters is because in PB10 the entire process took about 3-4 seconds and now it is double that because of the increase in time to swap dataobjects. Any ideas?
Using: