Thank you for your answer. Do you plan something like that in future? We face the problem we need to upload tens thousands of files in 4 hours per week. We are able to do it with replace with folder, but current store per file is too slow. :-(
Have you already tried the XQuery way? If so, and if it’s too slow, feel free to share your code with us.
Odesláno z mého chytrého telefonu Samsung Galaxy.
-------- Původní zpráva -------- Od: Christian Grün christian.gruen@gmail.com Datum: 14.11.19 18:30 (GMT+01:00) Komu: Radim Havlicek radim-havlicek@post.cz Cc: BaseX basex-talk@mailman.uni-konstanz.de Předmět: Re: [basex-talk] REPLACE vs STORE
Hi Radim,
The STORE command is restricted to single files [1]. XQuery and db:store (e.g. combined with file:list) gives you more flexibility here.
Hope this helps, Christian
[1] http://docs.basex.org/wiki/Commands#STORE
On Thu, Nov 14, 2019 at 10:53 AM radim-havlicek@post.cz wrote:
Hello, I would like to store new reports into existing database folder (with other existing files already) after opening.
Help: REPLACE Syntax REPLACE [path] [input] XML Syntax <replace path='...'>[input]</replace>
STORE Syntax STORE (TO [path]) [input] XML Syntax <store (path='...')>[input]</store>
But actually I encountered this problem:
open mydb
Database 'mydb' was opened in 3.0 ms.
replace /Report/ c:/Share/REPORTS/
903 resource(s) replaced in 11077.73 ms.
store to /Report/ c:/Share/REPORTS/
Resource "C:/Share/REPORTS/" not found.
What am I doing wrong? Is it possible to use store to instead of replace to just add files to existing ones?
Thanks in advance for your answer,
Radim Havlicek