Hi Christian,
Thanks for your response. We have a use case that we need to insert multiple files (mix of documents and binary files), in a single bulk transaction. If any of the file failed, all of the files need to be not inserted.
Having that said, we have tried to use XQuery, wrapping multiple mix of db:add(),db:store etc, testing with approach seemed to work. However, in our application, we’ve been using the java client (BaseXClient.java). I’m basically looking for a mechanism, similar to the store method, but allow multiple files and mix type of files.
So I think you were right about that I need to send multiple files to the server and store them in a temporary directory and then use another Query function to store all of the in the database. I was just looking for if there is another alternative in basex so that the storing in a temporary directory can be avoid.
Thanks for your help.
Regards, -Genneva
On 8/11/16, 2:51 AM, "Christian Grün" christian.gruen@gmail.com wrote:
Hi Genneva,
I’m not exactly sure what you are after.. Do you want to store multiple binary files in a single transaction?
I guess you have already tried the store() function of the client, but this function is indeed limited to a single file.
You’ll probably need to send multiple files to the server (and store them e.g. in a temporary directory) and then use another XQuery function to store all of them in the database. This will give you better performance anyway.
Christian