Re: [basex-talk] db:optimize

2020-01-30 Thread Ветошкин Владимир
I have found a reason.There was a query with non-static database names and because of that global lock.Thank you for your help! 30.01.2020, 12:10, "Ветошкин Владимир" :I suppose, there is something interesting in the core of website.If I isolate two php functions (one only update, one only read) -

Re: [basex-talk] db:optimize

2020-01-30 Thread Ветошкин Владимир
I suppose, there is something interesting in the core of website.If I isolate two php functions (one only update, one only read) - everything is ok.But If I update and read from the core of website - reading function waits finishing updating function.  30.01.2020, 11:17, "Ветошкин Владимир" :From p

Re: [basex-talk] db:optimize

2020-01-30 Thread Ветошкин Владимир
From php I call:exec("\"/path/to/java/java.exe\" -cp \"/path/to/basex/BaseX.jar;/path/to/basex/lib/custom/*;/path/to/basex/lib/*\" -Xmx1200m org.basex.BaseXClient -Uadmin -Padmin -q\"db:optimize('000999~201807',true(), map { 'language':'Russian', 'ftindex': true(), 'textindex': true(), 'attrindex':

Re: [basex-talk] db:optimize

2020-01-30 Thread Christian Grün
Please provide us with a self-contained test case. Thanks in advance Ветошкин Владимир schrieb am Do., 30. Jan. 2020, 09:01: > Hmm.. > If I run [basex -q"db:optimize('A')"], I can read from db 'B'. > But if I run [basexclient -Uadmin -Padmin -q"db:optimize('A')"], I can't > read from db 'B'. >

Re: [basex-talk] db:optimize

2020-01-30 Thread Ветошкин Владимир
Hmm..If I run [basex -q"db:optimize('A')"], I can read from db 'B'.But if I run [basexclient -Uadmin -Padmin -q"db:optimize('A')"], I can't read from db 'B'. 29.01.2020, 21:48, "Ветошкин Владимир" :Yes, the system works on php and I can call basex only via php client of basex or exec function.Now a