From: Thomas W. <tho...@gm...> - 2010-02-02 19:44:21
|
Andrzej, util:eval-async will be close to what I need with one difference - the ability to create a batch of jobs. I believe it is important especially when we scale things up. If we have an application where every user can fire a federated search to 25 remote servers, we do need a simple and robust way to cancel incompleted long running jobs, if the user makes a new federated search, logs off prematurely or when the session times out. With batch functions we can combine results (with batch callback function) or get with one command all available data so far from all completed jobs. Thomas ------ Thomas White Mobile:+44 7711 922 966 Skype: thomaswhite gTalk: thomas.0007 Linked-In:http://www.linkedin.com/in/thomaswhite0007 facebook: http://www.facebook.com/thomas.0007 On 2 February 2010 16:15, Andrzej Jan Taramina <an...@ch...> wrote: > > Thomas asked: > > >> do believe, having asynchronous mechanism for fetching data in eXist will > >> > give us foundation for many?interesting new?ideas. > >> > I will need this functionality in about two months time and I?really hope > >> > somebody from the dev team will be interested in implementing the execution > >> > pipeline. > > To which Adam replied: > > > I think we will be very pushed for time to meet that deadline. The > > roadmap for the next two versions is already laid out - although it is > > subject to change. > > This feature, asynchronous execution of XQueries, is something that I'm really interested in having as well. > > And I'm willing to implement this within the next two months (probably sooner than that!). > > I was thinking of a new function along the lines of: > > util:eval-async( ... ) > > which would return some sort of id for the spawned xquery that could be used to check completion status and obtain the > results of the execution. Same function signatures as the original util:eval() function to start. > > Would this kind of new function meet your needs as well, Thomas? > > Thoughts from the crew on such a new function? > > > -- > Andrzej Taramina > Chaeron Corporation: Enterprise System Solutions > http://www.chaeron.com |