Batch/pipelined/async requests to eXist

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Batch/pipelined/async requests to eXist

Mats Eklund-2
Hi,

I need to perform a number of modifying operations (delete/replace) to collections/resources in the eXist database using the REST api from an XPL. Making a series of separate request-response transactions doesn't seem to be appropriate for large number of operations. I understand there is no built-in protocol for doing batch operations in eXist. The new async xforms submissions might help, but if I call them from an XPL for-each loop, are these submissions then really running in parallel? Another approach out there seems to be to use HTTP 1.1 pipelining. I don't see however how this can be done between Orbeon and eXist. Did anyone face/solve this problem?

Mats



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Batch/pipelined/async requests to eXist

Alessandro  Vernet
Administrator
Mats,

You could use the XForms async submissions, so all your requests are
sent to eXist in parallel, and you do a <xxforms:join-submissions/> at
the end to wait on all the queries. If you don't care about the
queries running in parallel, but instead want to send them in one
operation, I guess you could join then into one XQuery statement.

http://wiki.orbeon.com/forms/doc/developer-guide/asynchronous-submissions

Alex

On Fri, Mar 12, 2010 at 1:32 PM, Mats Eklund <[hidden email]> wrote:

>
> Hi,
>
> I need to perform a number of modifying operations (delete/replace) to collections/resources in the eXist database using the REST api from an XPL. Making a series of separate request-response transactions doesn't seem to be appropriate for large number of operations. I understand there is no built-in protocol for doing batch operations in eXist. The new async xforms submissions might help, but if I call them from an XPL for-each loop, are these submissions then really running in parallel? Another approach out there seems to be to use HTTP 1.1 pipelining. I don't see however how this can be done between Orbeon and eXist. Did anyone face/solve this problem?
>
> Mats
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet