Topic - async requests in a dmpl loop
Topic - async requests in a dmpl loop Topic - async requests in a dmpl loop
from forum Solutions Developer
 forum index   my profile   search 
 new topic  post reply 
moderators: pjr tab
async requests in a dmpl loop
Joined: 22-April-2007
Posts: 79
Location: Belgium
Posted: 5-September-2008 09:38
Greetings,
I've written a nice recursive walk through my asset-database to generate a document which either shows which assets are impacted by a certain asset or (other direction, same thing) which assets are dependent on a certain asset.
So far all cool. I've managed to do everything in DPML.

Now I want to improve performance by launching my subrequests (due to SQL requirements I can only do one level at a time, hence the need for recursiveness) async. By serializing the output-writing (golden thread) I should be able to pull that off.
So far still good.

The change to async of the DPML request is easy. However, this request is inside a while loop. So I have to keep track of x-number requests in order to join all of them after the loop (otherwise there's no benefit).
In a script language that would be easy. Enter a table. Build it as you run through the while, process it after.
In DPML however ... how do I keep track of the requests ?

Has anyone done this (and succeeded) before ?
Regards,
Tom
 new topic  post reply  To find out about new replies to this post as they occur
please subscribe to one of these feeds:
AtomRSS moderate 
© 2003-2006, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.