Re: [basex-talk] Optimization for procedure call ?

2015-01-13 Thread jean-marc Mercier
Glory to our holy Leo for transmitting *brahmavidya* to shishya !! Turning back to this optimization problem, this might be trickier since execution time does not seem to behave linearly. For instance, consider declare function local:test1($i){let $data_3 as item() *:= fn:for-each((1 to

Re: [basex-talk] Optimization for procedure call ?

2015-01-13 Thread jean-marc Mercier
Christian, Note that executing within BaseX gui leads to different results, but seems also to behave non linearly : for instance for $i in (15 to 20) return prof:time(local:test1($i)) returns random results : for instance Evaluating: - 1368.54 ms - 1314.6 ms - 5151.12 ms - 1719.01 ms - 6023.38 ms

Re: [basex-talk] Optimization for procedure call ?

2015-01-13 Thread jean-marc Mercier
Christian, Hi. Thanks for the FLWOR trick, behaving in constant time. However it seems to generates an unexpected 5X time overhead, and I can't use it straightforwardly as workaround. Can you reproduce it, since this overhead might be due to eclipse ? declare function local:test(){fn:for-each(1

[basex-talk] Get Path physical of item in database

2015-01-13 Thread nguyen my
I want to get the physical path of an item in database by xquery . but i don't known how. the path as: Users/Emotive/Documents/Open Test Framework/OtxProject16/ZZZ/OTX or target path as in BaseX Gui: /NewDefaultPackage1/ this is xquery code. declare default element namespace

Re: [basex-talk] User login

2015-01-13 Thread Andy Bunce
The change is not a problem for me, but I am not a security expert ;-) However if it stays then I guess it means the -U and -P options to basexhttp are being silently ignored. I think something like the existdb approach would be more what I would expect. The ability to config a default http user

Re: [basex-talk] Optimization for procedure call ?

2015-01-13 Thread Christian Grün
Hi Jean-Marc, beforehand: The first issue you reported back to us recently [1] has been fixed by our functional guru Leo! A new snapshot is available [2]. Hi. Thanks for the FLWOR trick, behaving in constant time. However it seems to generates an unexpected 5X time overhead Most probably this

Re: [basex-talk] User login

2015-01-13 Thread Christian Grün
Hi Andy, I think something like the existdb approach would be more what I would expect. The ability to config a default http user with reduced permissions, and then a way to change the user associated with the session e.g. session:set-current-user

[basex-talk] O'Reilly: eXist. A NoSQL Document Database and Application Platform

2015-01-13 Thread Christian Grün
Hi all, Our friends from eXist (or, more specifically, Adam Retter and Erik Siegel) have just published an O'Reilly book on the eXist database. It is available both on paper and as epub [1]. Have fun, Christian [1] http://shop.oreilly.com/product/0636920026525.do