Hi Giuseppe,

I think it is because you are using xquery and your backfile is huge with 
respect to your java memory settings.
Db:create function is an updating function, so all your inserted data has to go 
to the pending update list (see [1] for explanation) before database creation, 
causing out of memory.
If you want to automate database creation/update you could have a look at the 
xml command files, a way to create a batch of BaseX commands ([2]).
In my use cases, I found it easier to write XQuery queries, which generate XML 
Command files, to get rid of memory concerns.

Hoping it helps,

Best regards,

 [1] : http://docs.basex.org/wiki/XQuery_Update#Pending_Update_List

[2] : http://docs.basex.org/wiki/Commands


-----Message d'origine-----
De : [email protected] 
[mailto:[email protected]] De la part de Giuseppe 
Celano
Envoyé : lundi 23 avril 2018 15:03
À : BaseX
Objet : [basex-talk] database creation baseX.8.6.7

Hi All,

I can create a database via the GUI, but if I use db:create [1] I get the 
message "out of main memory": why? Thanks! 

db:create("myDB",
"sourceDirectory",
"destinationDirectory",
map{"ftindex": true(), "language": false()}
         )

Best,
Giuseppe

Reply via email to