[basex-talk] ODP: ODP: Update functions - Error handling and counting

2018-08-25 Thread Bogdan Bogucki
Hi Christian, I have question about updates. I use updating function upsertVehicles in loop. Function downloadVehicles download from url and pass to upsertVehicles function. declare %updating function cfv:downloadData () as empty-sequence() { for $URL in doc("config.xml")/urls return (c

Re: [basex-talk] rest parallel

2018-08-25 Thread Ветошкин Владимир
That seems to be the case.Thanks. 25.08.2018, 22:18, "Christian Grün" :I see. So this must be an issue with Chrome (and, possibly, requests to localhost).  Ветошкин Владимир schrieb am Sa., 25. Aug. 2018, 21:16:Hmm.. When I request "test" in 2 tabs of chrome - only one job app

Re: [basex-talk] rest parallel

2018-08-25 Thread Christian Grün
I see. So this must be an issue with Chrome (and, possibly, requests to localhost). Ветошкин Владимир schrieb am Sa., 25. Aug. 2018, 21:16: > Hmm.. When I request "test" in 2 tabs of chrome - only one job appears. > But when I request the first "test" in one tab and the second "test" in > anot

Re: [basex-talk] rest parallel

2018-08-25 Thread Christian Grün
In the DBA, all jobs should be listed, so this rather indicates that your second request does not reach the BaseX HTTP server. How do you send the requests? Ветошкин Владимир schrieb am Sa., 25. Aug. 2018, 20:36: > Hi, Christian! > > Oh, yes, I test it on an old single-core system :) > Is it t

Re: [basex-talk] rest parallel

2018-08-25 Thread Ветошкин Владимир
Hmm.. When I request "test" in 2 tabs of chrome - only one job appears.But when I request the first "test" in one tab and the second "test" in another browser (or in incognito tab) - two jobs appears. 25.08.2018, 21:36, "Ветошкин Владимир" :Hi, Christian! Oh, yes, I test it on an old single-core sy

Re: [basex-talk] rest parallel

2018-08-25 Thread Ветошкин Владимир
Hi, Christian! Oh, yes, I test it on an old single-core system :)Is it the reason?In DBA only one job listed. When the first "test" finish, in job list appers the second job. 25.08.2018, 21:15, "Christian Grün" :Hi Vladimir,parallel sleep requests will be evaluated in parallel indeed (see theattach

Re: [basex-talk] rest parallel

2018-08-25 Thread Christian Grün
Hi Vladimir, parallel sleep requests will be evaluated in parallel indeed (see the attached screenshot). How did you test this? If you have an old single-core system, it might happen that only one job will be executed at a time; but all jobs should be listed in the DBA, or when calling jobs:list-

Re: [basex-talk] Update functions - Error handling and counting

2018-08-25 Thread Christian Grün
> I found that update:output-cache() is in module db. Wiki describe > output-cache() in update module. Thanks for the info. I have updated our documentation. The function is now called update:cache(), and the legacy function db:output-cache() will be removed in a future version of BaseX.

[basex-talk] rest parallel

2018-08-25 Thread Ветошкин Владимир
Hi! Why do requests to RESTXQ wait for finishing each other?For example:declare  %rest:path("/test")  %rest:GET  function page:test(){  prof:sleep(5000)}; If I make 2 requests to /test, the first ends in 5 sec, the second - in 10 sec. -- С уважением,Ветошкин Владимир Владимирович 

[basex-talk] ODP: Update functions - Error handling and counting

2018-08-25 Thread Bogdan Bogucki
Hi Christian, Thank you it helps me a lot. I found that update:output-cache() is in module db. Wiki describe output-cache() in update module. Best Regards Bogdan Bogucki -Wiadomość oryginalna- Od: Christian Grün [mailto:christian.gr...@gmail.com] Wysłano: 24 sierpnia 2018 23:41 Do: