Hi Joe,
Below is a representative XQuery expression, wherein the JSON file is added via db:rename, and that addition is journaled to an XML log file via the write-log-event function.
Sorry, I can’t follow. How/why do you use db:rename to add resources?
Do you store all JSON files as binaries (raw files)? In that case, it’s probably your file system that does not support large numbers of files in the same directory. Did you check out our Wiki article on binary files [1]?
Christian