Hi Владимир,
But I want non-blocking read/write operations (in different databases) with php. Is it possible? Or I only have to wait finishing update operation?
I haven’t done anything with PHP for more than 10 years now, but maybe you need to use parallel or pthreads and do the work via multiple threads. Are you already working with several BaseX client instances?
Christian
On Wed, Jan 29, 2020 at 10:14 AM Ветошкин Владимир en-trance@yandex.ru wrote:
Thank you.
29.01.2020, 12:02, "first name last name" randomcoder1@gmail.com:
But if you are willing to give up that GUI, you could instead use the DBA interface [2] in your browser, and write all your code there if you start BaseX's http server [1]. However, the DBA interface will not give you auto-complete (and other nice things you see in the GUI), but you can still write code, run code, and save it to disk there.
[1] http://docs.basex.org/wiki/Command-Line_Options#HTTP_Server [2] http://docs.basex.org/wiki/DBA
On Wed, Jan 29, 2020 at 10:57 AM first name last name randomcoder1@gmail.com wrote:
"For example, if you only read data, you can easily run several clients (standalone, GUI, database clients) at the same time. If you update your data, however, you shouldn’t use the GUI or a standalone instance at the same time." [1] http://docs.basex.org/wiki/Startup#Concurrent_Operations
On Wed, Jan 29, 2020 at 9:25 AM Ветошкин Владимир en-trance@yandex.ru wrote:
Hi, everybody!
I use basex+php. When I call db:optimize('A') from basex gui I can read from db 'B'. But if I call db:optimize('A') from php (php cli) I can't read 'B' while the first query is working. Why? And how can I solve it? I wracked my brain...
-- С уважением, Ветошкин Владимир Владимирович
-- С уважением, Ветошкин Владимир Владимирович