Currently all document we installed is in binary format. So we use bin:decode-String(db:retrieve(‘schema’, path)
I see. In that case, the degradation is due to your filesystem (find some details in [1]). You could either try to run BaseX on a partition with a file system that is capable of handling a larger amount of files, or you can distribute your files in different sub-paths.
0/1/file01.txt 1/2/file12.txt
Out of interest: BaseX is particularly good at handling XML structures. Why do you store everything are binary data?
[1] http://docs.basex.org/wiki/Binary_Data
Thanks
Yvonne
On 6/21/16, 1:44 PM, "Christian Grün" christian.gruen@gmail.com wrote:
Hi Yvonne,
could you give us some hints how you retrieve documents? Do you use one of the existing APIs, db:open, or any other functions?
TIA Christian
We noticed that when # of documents increased in BaseX database, it will double time to retrieve documents in database. Our test cases execution time double when # of documents increased from 200 to 400. And If number of document reach to 5000, The test case execution time increase much more.
Is that any performance testing BaseX team can share with us to compare, or there is any documentation or suggestion for BaseX database turning that we should follow?
Thanks
Yvonne