Re: [basex-talk] BaseX 9.1: The Autumn Edition
Amazing! Have to check translation and add new items there. On Wed, Oct 31, 2018 at 8:14 PM Maximilian Gärber wrote: > Good news and great work! > > > > > Am Mi., 31. Okt. 2018 um 17:34 Uhr schrieb Christian Grün > : > > > > Dear XML and XQuery aficionados, > > > > It’s been exactly 5 months ago when BaseX 9 was released, and we are > > happy to announce version 9.1 of our XML framework, database system > > and XQuery 3.1 processor! The latest release is online: > > > > http://basex.org > > > > The most exciting addition is support for WebSockets, which enable you > > to do bidirectional (full-duplex) client/server communication with > > XQuery web applications: > > > > http://docs.basex.org/wiki/WebSockets > > > > Moreover, we have added convenient syntax extensions (ternary if, > > Elvis operator, if without else) to XQuery. Some of them may be made > > available in other implementations of XQuery as well (we’ll keep you > > updated): > > > > http://docs.basex.org/wiki/XQuery_Extensions#Expressions > > > > Other new features are as follows: > > > > XQuery: > > - set local locks via pragmas and function annotations > > - Database Module: faster processing of value index functions > > - Jobs Module: record and return registration times > > - ENFORCEINDEX option: support for predicates with dynamic values > > - Update Module, update:output: support for caching maps and arrays > > > > GUI: > > - Mac, Windows: Improved rendering support for latest Java versions > > - XQuery editor: choose and display current query context > > > > Visit http://docs.basex.org to get more information on the added > features. > > > > Your feedback is welcome! Have fun, > > > > Christian > > BaseX Team > -- s0rr0w
Re: [basex-talk] Passing sequence of strings to the java class
Thanks! On Fri, Jun 29, 2018 at 1:34 PM Christian Grün wrote: > I see! As XQuery sequences may contain items of arbitrary type, it is > not always possible to decide at compile time which Java function > needs to be chosen for evaluation. I recommend you to stick with the > "Object..." declaration. > > Nevertheless, I will check if we can optimize the static function > selection without compromising performance. > > Best, > Christian > > > > On Fri, Jun 29, 2018 at 12:30 PM Alexander Shpack > wrote: > > > > Hi Christian, > > > > Right now we are using the next code > > > > public static String exec(String key) { > > return ... > > } > > > > public static String exec(Object... keys) { > > return ... > > } > > > > The code that doesn't work: > > > > public static String exec(String... keys) > > > > > > > > On Fri, Jun 29, 2018 at 10:51 AM Christian Grün < > christian.gr...@gmail.com> wrote: > >> > >> Hi Alex, > >> > >> How does the signature of the invoked Java function look like? > >> > >> Best, > >> Christian > >> > >> > >> > >> On Mon, Jun 18, 2018 at 9:43 PM Alexander Shpack > wrote: > >> > > >> > Hey, team! > >> > > >> > Just simple question. How to pass sequence of string to the java > class? > >> > > >> > let $values := for $i in (1 to 3) return $i cast to xs:string > >> > return j:exec($values) > >> > > >> > In case when local function returns one item all is good. Otherwise > j:exec takes array of item()+, but not the array of stings. > >> > > >> > If you just call j:exec(("1","2")) than all works as expected. > >> > > >> > Any thoughts? Is it bug or feature? ;) > >> > > >> > BaseX 9.0 > >> > > >> > Thanks! > >> > > >> > > >> > -- > >> > s0rr0w > > > > > > > > -- > > s0rr0w > -- s0rr0w
Re: [basex-talk] Passing sequence of strings to the java class
Hi Christian, Right now we are using the next code public static String exec(String key) { return ... } public static String exec(Object... keys) { return ... } The code that doesn't work: public static String exec(*String*... keys) On Fri, Jun 29, 2018 at 10:51 AM Christian Grün wrote: > Hi Alex, > > How does the signature of the invoked Java function look like? > > Best, > Christian > > > > On Mon, Jun 18, 2018 at 9:43 PM Alexander Shpack > wrote: > > > > Hey, team! > > > > Just simple question. How to pass sequence of string to the java class? > > > > let $values := for $i in (1 to 3) return $i cast to xs:string > > return j:exec($values) > > > > In case when local function returns one item all is good. Otherwise > j:exec takes array of item()+, but not the array of stings. > > > > If you just call j:exec(("1","2")) than all works as expected. > > > > Any thoughts? Is it bug or feature? ;) > > > > BaseX 9.0 > > > > Thanks! > > > > > > -- > > s0rr0w > -- s0rr0w
Re: [basex-talk] Full-Text
Hi, Vladimir, If you will do db names with the particular prefix, for example "db_", you may use the next code let $docs := for $i in db:list()[starts-with(.,"db_")] return db:open($i) return $docs/* On Mon, Jun 25, 2018 at 12:32 PM Ветошкин Владимир wrote: > Hi, Alexander, > > Some questions: > After that, how can I perform a search in all of these databases? > Can I search for substring without fulltext using only text index? > > 25.06.2018, 11:56, "Alexander Shpack" : > > Hey Vladimir, > > You can use sharding approach for you data import and split all DBs even > every month. > > > > On Mon, Jun 25, 2018 at 11:50 AM Ветошкин Владимир > wrote: > > Hi, Alexander! > Thank you! > > In my previous letter I have described the proccess in short. > I'll think about separated DB. But I'm afraid that this base will also be > very big in future. > Although I can try to split data to several databases - one per year.. > Hmm.. > > 25.06.2018, 11:25, "Alexander Shpack" : > > Hey, Vladimir! > > Just put this specific files to the separated DB and than index it. > You can process it automatically, BaseX allows to create and index DB > right from XQuery. > > I hope it helps you. Anyhow, you can provide more details about your task > and we can figure out the best solution for you. > > > > On Mon, Jun 25, 2018 at 10:42 AM Ветошкин Владимир > wrote: > > Hi, Fabrice! > Thank you. > > All databases constantly change.That is why there is no way to single out > "a big readonly collection" :( > Maybe it is possible to use some other incremental indexes? > I have to index specific xml-files, not all files in database. > > 21.06.2018, 17:16, "Fabrice ETANCHAUD" : > > Hi Vladimir, > > > > I don’t think there is something like a incremental full text index for > the moment [1]. > > As index is per collection, the recommanded way shall be to split your > data in two collections : > > - A big readonly collection of all the past updates, indexed once > > - A small/medium sized collection whom full text index can be > recreated in an acceptable time after each update. > > At the end of a predefined time period, you have to add the live > collection to the readonly one, reindex it, and truncate the live one. > > > > Best regards from France, > > Fabrice Etanchaud > > > > [1] http://docs.basex.org/wiki/Indexes#Updates > > > > > > > > > > *De :* BaseX-Talk [mailto:basex-talk-boun...@mailman.uni-konstanz.de] *De > la part de* > *Envoyé :* jeudi 21 juin 2018 16:02 > *À :* BaseX > *Objet :* [basex-talk] Full-Text > > > > Hi, everyone! > > > > Is there any way to index only imported xml-files? > > Now, when I import xml-files the full-text index is deleted. > > After importing I recreate whole full-text index and it takes too much > time :( > > > > -- > > С уважением, > > Ветошкин Владимир Владимирович > > > > > > -- > С уважением, > Ветошкин Владимир Владимирович > > > > > -- > s0rr0w > > > > -- > С уважением, > Ветошкин Владимир Владимирович > > > > > -- > s0rr0w > > > > -- > С уважением, > Ветошкин Владимир Владимирович > > -- s0rr0w
Re: [basex-talk] Full-Text
Hey Vladimir, You can use sharding approach for you data import and split all DBs even every month. On Mon, Jun 25, 2018 at 11:50 AM Ветошкин Владимир wrote: > Hi, Alexander! > Thank you! > > In my previous letter I have described the proccess in short. > I'll think about separated DB. But I'm afraid that this base will also be > very big in future. > Although I can try to split data to several databases - one per year.. > Hmm.. > > 25.06.2018, 11:25, "Alexander Shpack" : > > Hey, Vladimir! > > Just put this specific files to the separated DB and than index it. > You can process it automatically, BaseX allows to create and index DB > right from XQuery. > > I hope it helps you. Anyhow, you can provide more details about your task > and we can figure out the best solution for you. > > > > On Mon, Jun 25, 2018 at 10:42 AM Ветошкин Владимир > wrote: > > Hi, Fabrice! > Thank you. > > All databases constantly change.That is why there is no way to single out > "a big readonly collection" :( > Maybe it is possible to use some other incremental indexes? > I have to index specific xml-files, not all files in database. > > 21.06.2018, 17:16, "Fabrice ETANCHAUD" : > > Hi Vladimir, > > > > I don’t think there is something like a incremental full text index for > the moment [1]. > > As index is per collection, the recommanded way shall be to split your > data in two collections : > > - A big readonly collection of all the past updates, indexed once > > - A small/medium sized collection whom full text index can be > recreated in an acceptable time after each update. > > At the end of a predefined time period, you have to add the live > collection to the readonly one, reindex it, and truncate the live one. > > > > Best regards from France, > > Fabrice Etanchaud > > > > [1] http://docs.basex.org/wiki/Indexes#Updates > > > > > > > > > > *De :* BaseX-Talk [mailto:basex-talk-boun...@mailman.uni-konstanz.de] *De > la part de* > *Envoyé :* jeudi 21 juin 2018 16:02 > *À :* BaseX > *Objet :* [basex-talk] Full-Text > > > > Hi, everyone! > > > > Is there any way to index only imported xml-files? > > Now, when I import xml-files the full-text index is deleted. > > After importing I recreate whole full-text index and it takes too much > time :( > > > > -- > > С уважением, > > Ветошкин Владимир Владимирович > > > > > > -- > С уважением, > Ветошкин Владимир Владимирович > > > > > -- > s0rr0w > > > > -- > С уважением, > Ветошкин Владимир Владимирович > > -- s0rr0w
Re: [basex-talk] Full-Text
Hey, Vladimir! Just put this specific files to the separated DB and than index it. You can process it automatically, BaseX allows to create and index DB right from XQuery. I hope it helps you. Anyhow, you can provide more details about your task and we can figure out the best solution for you. On Mon, Jun 25, 2018 at 10:42 AM Ветошкин Владимир wrote: > Hi, Fabrice! > Thank you. > > All databases constantly change.That is why there is no way to single out > "a big readonly collection" :( > Maybe it is possible to use some other incremental indexes? > I have to index specific xml-files, not all files in database. > > 21.06.2018, 17:16, "Fabrice ETANCHAUD" : > > Hi Vladimir, > > > > I don’t think there is something like a incremental full text index for > the moment [1]. > > As index is per collection, the recommanded way shall be to split your > data in two collections : > > - A big readonly collection of all the past updates, indexed once > > - A small/medium sized collection whom full text index can be > recreated in an acceptable time after each update. > > At the end of a predefined time period, you have to add the live > collection to the readonly one, reindex it, and truncate the live one. > > > > Best regards from France, > > Fabrice Etanchaud > > > > [1] http://docs.basex.org/wiki/Indexes#Updates > > > > > > > > > > *De :* BaseX-Talk [mailto:basex-talk-boun...@mailman.uni-konstanz.de] *De > la part de* > *Envoyé :* jeudi 21 juin 2018 16:02 > *À :* BaseX > *Objet :* [basex-talk] Full-Text > > > > Hi, everyone! > > > > Is there any way to index only imported xml-files? > > Now, when I import xml-files the full-text index is deleted. > > After importing I recreate whole full-text index and it takes too much > time :( > > > > -- > > С уважением, > > Ветошкин Владимир Владимирович > > > > > > -- > С уважением, > Ветошкин Владимир Владимирович > > -- s0rr0w
[basex-talk] Fwd: Passing sequence of strings to the java class
Hey, team! Just simple question. How to pass sequence of string to the java class? let $values := for $i in (1 to 3) return $i cast to xs:string return j:exec($values) In case when local function returns one item all is good. Otherwise j:exec takes array of item()+, but not the array of stings. If you just call j:exec(("1","2")) than all works as expected. Any thoughts? Is it bug or feature? ;) BaseX 9.0 Thanks! -- s0rr0w
[basex-talk] Passing sequence of strings to the java class
Hey, team! Just simple question. How to pass sequence of string to the java class? let $values := for $i in (1 to 3) return $i cast to xs:string return j:exec($values) In case when local function returns one item all is good. Otherwise j:exec takes array of item()+, but not the array of stings. If you just call j:exec(("1","2")) than all works as expected. Any thoughts? Is it bug or feature? ;) BaseX 9.0 Thanks! -- s0rr0w
Re: [basex-talk] TagSoup and html5 support
On Wed, Dec 21, 2016 at 3:46 PM, Christian Grünwrote: > > Nope, I don't. It should be implemented in basex server, we are using > restxq > > functionality. > > If we find working and light-weight alternatives, we could replace the > original distribution of TagSoup with the new solution. Suggestions > are welcome. > I think TagSoup is good enough. But it requires some html5 tuning. I know any library that is lightweight and has the same feature list as TagSoup. -- s0rr0w
Re: [basex-talk] TagSoup and html5 support
On Wed, Dec 21, 2016 at 3:33 PM, Christian Grünwrote: > Hi Alex, > > Currently, there is no alternative I have in mind. As I assume that > the original author of TagSoup has stopped development quite a while > ago, it could indeed be interesting to find alternatives or extended > versions of the original TagSoup code. Have you already tried the > project you’ve been quoting in your e-mail? > > Nope, I don't. It should be implemented in basex server, we are using restxq functionality.
[basex-talk] TagSoup and html5 support
Hi team! As you know, TagSoup 1.2.1 doesn't support correct HTML5 tag nesting. For example, this string Test will be parsed as But html5 code Test will be parsed as is. How to implement in BaseX the html5 support? I've found this project, but not sure that it's possible to add it into basex code https://github.com/UniversityofWarwick/tagsoup-html5 Thanks!
Re: [basex-talk] Nonstandard CSV in RESTXQ
One more thing. I've written the next code in GUI, and it works perfect. let $fName := "test.csv" let $content := file:read-text($fName, "cp1251") let $csv := csv:parse($content, map{ 'separator': ';', 'header': false() } ) return $csv What the difference between post data and raw file? On Sun, Jun 12, 2016 at 11:45 PM, Alexander Shpack <shadow...@gmail.com> wrote: > Did you always upload the same file? > > Yeah > > >> As the error indicates, it seems that your CSV input seems to contain >> characters that are not valid in XML. There are various ways to tackle >> this; one looks as follows: >> >> (: interpret client data as Base64 :) >> declare >> %rest:path("/upload") >> %rest:POST("{$body}") >> function local:store-csv($body as xs:base64Binary) >> { >> (: replace invalid characters with a question mark :) >> let $input := bin:from-octets( >> bin:to-octets($body) ! (if(. >= 32 or . = (9, 10, 13)) then . else >> 63) >> ) >> (: convert to XQuery Unicode string; convert to XML :) >> let $string := bin:decode-string($input, 'CP1251') >> return csv:parse($string) >> }; >> >> There may be easier solutions as well (I’ll give you an update once I >> remember them ;). >> > > Strange solution... Ok, I'll wait for a better one. > > -- > s0rr0w > -- s0rr0w
Re: [basex-talk] Nonstandard CSV in RESTXQ
No luck with you code [XPTY0004] Binary expected, xs:string found. On Sun, Jun 12, 2016 at 10:50 PM, Christian Grünwrote: > > I've tried it, it works. Almost fine. Now I have an issue with encoding. > > Seems like 'encoding' parameter was not applied > > > > let $csv := csv:parse($csv, map{ 'separator': ';', 'header': false(), > > 'encoding': 'CP1251' } ) > > This should work: > > declare > %rest:path("/upload") > %rest:POST("{$body}") > function local:store-csv($body) > { > let $string := convert:binary-to-string($body, 'CP1251') > return csv:parse($string, map{ 'separator': ';', 'header': false(), > }; > -- s0rr0w
Re: [basex-talk] Nonstandard CSV in RESTXQ
On Sun, Jun 12, 2016 at 10:26 PM, Christian Grünwrote: > > No, browser doesn't want to send file content with this mime type. > > If you use the browser to send requests, it may be better to convert > your data to CSV via XQuery: > > csv:parse($input, map { > "header": false(), "separator": "semicolon" > }) > > I've tried it, it works. Almost fine. Now I have an issue with encoding. Seems like 'encoding' parameter was not applied let $csv := csv:parse($csv, map{ 'separator': ';', 'header': false(), *'encoding': 'CP1251'* } ) How does your html look like, which you use for sending the request > via the browser? > > Send -- s0rr0w
Re: [basex-talk] Nonstandard CSV in RESTXQ
No, browser doesn't want to send file content with this mime type. The other thing, RFC describes "text/csv" mime type. Are you sure that "text/comma-separated-values" is the correct one? On Sun, Jun 12, 2016 at 9:41 PM, Christian Grün <christian.gr...@gmail.com> wrote: > Did you specify "text/comma-separated-values" as Content-Type? > Am 12.06.2016 8:05 nachm. schrieb "Alexander Shpack" <shadow...@gmail.com > >: > >> Thank you, Christian! >> >> But it doesn't work as expected >> >> declare >> %rest:path("/upload") >> %rest:POST("{$csv}") >> %input:csv("header=false,encoding=CP1251,separator=semicolon") >> %output:method("html") >> function page:uploadFile($csv as document-node()) >> { >> $csv >> }; >> >> >> [XPTY0004] Cannot cast xs:string to document-node(): "?? ? >> >> >> On Sun, Jun 12, 2016 at 6:48 PM, Christian Grün < >> christian.gr...@gmail.com> wrote: >> >>> Hi Alex, >>> >>> The following annotation should do what you want: >>> >>> %input:csv("header=true,encoding=CP1252") >>> >>> You were completely right, the existing documentation was a bit >>> scrappy. I have slightly rewritten it (see [1] and outgoing links). >>> >>> Hope thie helps, >>> Christian >>> >>> [1] http://docs.basex.org/wiki/RESTXQ#Input_options >>> >>> >>> >>> >>> On Sun, Jun 12, 2016 at 4:03 PM, Alexander Shpack <shadow...@gmail.com> >>> wrote: >>> > Hi, >>> > >>> > I have nonstandard CSV file with semicolon instead of comma as a >>> separator >>> > and cp1251 encoded. Documentation is not clear in this case, and the >>> sample >>> > doesn't work properly >>> > >>> > declare >>> > %rest:path("/store.csv") >>> > %rest:POST("{$csv}") >>> > %input:csv("header=true") >>> > function page:store-csv($csv as document-node()) >>> > { >>> > "Number of rows: " || count($csv/csv/record) >>> > }; >>> > >>> > Even if I changed the encoding manually the next code does nothing >>> > %input:csv("separator=semicolon") >>> > and returns text instead of document-node() >>> > >>> > Could you check it? >>> > >>> > It would be nice if you add additional encoding parameter to csv >>> module. >>> > >>> > Thanks! >>> >> >> >> >> -- >> s0rr0w >> > -- s0rr0w
Re: [basex-talk] Module parsing performance
On Mon, Jun 22, 2015 at 9:29 AM, Christian Grün christian.gr...@gmail.com wrote: Hi Alex, 10k of XQuery code doesn't sound too much. Did you already test how much time goes into parsing, compiling and evaluating the query? You can e.g. see this by looking at the blue bars in the Info panel in the GUI, or by using -V on command line. 2-3 seconds on slow CPU (Athlon). If I run one function from the module directly, it works fine. The trouble in module parsing. Best, Christian On Fri, Jun 19, 2015 at 5:18 PM, Alexander Shpack shadow...@gmail.com wrote: Hi BaseX team! How to increase performance of parsing and executing on custom xqm module? I have 10K lines of sxq code and it makes huge CPU load on the parsing process. Any ideas? -- s0rr0w -- s0rr0w
Re: [basex-talk] Module parsing performance
Parsing: 1539.6 ms Compiling: 46.47 ms Evaluating: 115.02 ms Printing: 5.84 ms Total Time: 1706.94 ms Hit(s): 1 Item Updated: 0 Items Printed: 1927 Bytes Read Locking: local [***, ***] Write Locking: none Query executed in 1706.94 ms. On Mon, Jun 22, 2015 at 9:29 AM, Christian Grün christian.gr...@gmail.com wrote: Hi Alex, 10k of XQuery code doesn't sound too much. Did you already test how much time goes into parsing, compiling and evaluating the query? You can e.g. see this by looking at the blue bars in the Info panel in the GUI, or by using -V on command line. Best, Christian On Fri, Jun 19, 2015 at 5:18 PM, Alexander Shpack shadow...@gmail.com wrote: Hi BaseX team! How to increase performance of parsing and executing on custom xqm module? I have 10K lines of sxq code and it makes huge CPU load on the parsing process. Any ideas? -- s0rr0w -- s0rr0w
[basex-talk] Module parsing performance
Hi BaseX team! How to increase performance of parsing and executing on custom xqm module? I have 10K lines of sxq code and it makes huge CPU load on the parsing process. Any ideas? -- s0rr0w
Re: [basex-talk] 8.2 on Windows. RESTXQ demo doesn't work.
I replied inline * Is it the .basex file which is located in C:\Program Files (x86)\BaseX ? No, it's located in C:\Users\user\.basex * What happens if you start the start menu shortcut BaseX Server (Start)? C:/Program Files (x86)/BaseX/.basex: writing new configuration file. HTTP Server was started (port: 8984) Now it works fine
Re: [basex-talk] 8.2 on Windows. RESTXQ demo doesn't work.
Guys, I installed BaseX from *.exe* installator, not from .zip file. On Sat, May 23, 2015 at 5:06 AM, Erol Akarsu eaka...@gmail.com wrote: Alexander, No issue I am getting.Christian made it perfect. I downloaded war file and unzip to somewhere. Then modify WEB-INF/web.xml file. I modified these lines context-param param-nameorg.basex.restxqpath/param-name param-value/home/eakarsu/apache-tomcat-8.0.22/basex/param-value /context-param context-param param-nameorg.basex.dbpath/param-name param-value/home/eakarsu/apache-tomcat-8.0.22/basex/data/param-value /context-param context-param param-nameorg.basex.repopath/param-name param-value/home/eakarsu/apache-tomcat-8.0.22/basex/repo/param-value /context-param Copy files in WEB-INF folder contents to above configured location for org.basex.restxqpath so that you will have this: [eakarsu@norshin ~/apache-tomcat-8.0.22/basex]$ ls datadbareporestxq.xqmstatic Then build war file (BaseX82c.war) again and drop it to webapps folder of apache tomcat. Restart apache. You can access http://localhost:8080/BaseX82c/dba http://localhost:8080/BaseX82c/hello/World Erol Akarsu On Fri, May 22, 2015 at 4:20 AM, Alexander Shpack shadow...@gmail.com wrote: Hi BaseX team! It doesn't work, because WEBPATH contains (by default) a path to a local user's BaseXWeb folder, not to a webapp folder inside BaseX installation folder I was confused a bit, why clean installation of 8.2 doesn't work, when 8.1 works fine Thanks -- s0rr0w -- s0rr0w
[basex-talk] 8.2 on Windows. RESTXQ demo doesn't work.
Hi BaseX team! It doesn't work, because WEBPATH contains (by default) a path to a local user's BaseXWeb folder, not to a webapp folder inside BaseX installation folder I was confused a bit, why clean installation of 8.2 doesn't work, when 8.1 works fine Thanks -- s0rr0w
Re: [basex-talk] 8.2 on Windows. RESTXQ demo doesn't work.
I installed BaseX from .exe file. On Fri, May 22, 2015 at 12:19 PM, Christian Grün christian.gr...@gmail.com wrote: I am confused. It works for me. This is what I did: * downloaded BaseX82.zip * unzipped to c:\users\user\Desktop * started c:\Users\user\Desktop\basex\bin\basexhttp.bat * visited http://localhost:8984/ This is an extract from the newly created .basex file: # HTTP Services WEBPATH = C:/Users/user/Desktop/basex/webapp RESTPATH = RESTXQPATH = This is what is shown on command line when starting basexhttp.bat: C:/Users/user/Desktop/basex/.basex: writing new configuration file. [main] INFO org.eclipse.jetty.server.Server - jetty-8.1.16.v20140903 [main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet BaseX 8.2 [Server] Server was started (port: 1984) [main] INFO org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector@0.0.0.0:8984 HTTP Server was started (port: 8984) Do you possibly have some more hints on what goes wrong in your environment? Christian On Fri, May 22, 2015 at 10:37 AM, Andy Bunce bunce.a...@gmail.com wrote: Same for me. Using the zip to a new folder: Desktop/basex-8.2 then .basex has # HTTP Services WEBPATH = C:/Users/Bunceax/Desktop/basex-8.2/webapp RESTPATH = RESTXQPATH = If I edit .basex to have: RESTXQPATH = C:/Users/Bunceax/Desktop/basex-8.2/webapp It works again. /Andy On 22 May 2015 at 09:20, Alexander Shpack shadow...@gmail.com wrote: Hi BaseX team! It doesn't work, because WEBPATH contains (by default) a path to a local user's BaseXWeb folder, not to a webapp folder inside BaseX installation folder I was confused a bit, why clean installation of 8.2 doesn't work, when 8.1 works fine Thanks -- s0rr0w -- s0rr0w
Re: [basex-talk] BaseX: Upcoming Features
Hi Christian, What about redo logs and master/slave replication? On Tue, Mar 18, 2014 at 2:03 PM, Christian Grün christian.gr...@gmail.comwrote: Dear BaseX aficionados, An upcoming version of our software (7.9 or 8.0) will make it much easier to perform updates and return items at the same time [1]. It will also contain an xquery:update function and will bring xquery:eval and xquery:evaluate together again [2] Another exciting and sophisticated feature we are working on is query precompilation [3], which will particularly speed up large XQuery applications and allow for more request-specific optimizations. Next, we are working on a Database Administration interface based on RESTXQ, and we will also drop out the confusing client/server dialog from the GUI. Feature 1 and 2 are already available via a feature branch [4]. If you are working with the git sources, we are excited to get your feedback! Christian [1] https://github.com/BaseXdb/basex/issues/873 [2] https://github.com/BaseXdb/basex/issues/878 [3] https://github.com/BaseXdb/basex/issues/874 [4] https://github.com/BaseXdb/basex/tree/issue873 ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk -- s0rr0w ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
[basex-talk] Too many opened files error
Hello! for $i in (1 to 1000) let $name := 'user_' || $i return ( db:create( $name ) ) Is it bug, or normal behavior? I would like to create little benchmark with multiple databases, multiple writtings and readings to it. -- s0rr0w ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
[basex-talk] Proposals. Custom query slot management, named instances and read-only databases
Hi everyone! Our current project, based on BaseX, was failed on launch, because we have any practice with optimization for NoSQL databases and take the bottleneck with write locks, but we take the unbelievable experience with BaseX. Today I know, how to get the maximum from this DB 1. Custom query slot management. It would be useful, if query command can take the number of taken slot. From code side I know, that some type of requests is very simple, very fast, and DB can return rapidly the results back. And this type of requests may be sticked to some query slots permanently. From other side, heavy xQuery code may be managed automatically by BaseX 2. Named instances We need to start multiple BaseX servers to utilize more then one CPU core. It would be useful to set up the name for each instance by personal .basex config 3. Access mode Next proposal is simple. Allow to manage the type of access (read or write only, both) to DB for list of named instances. This proposal may help with the next architecture: many servers with one DBPATH. Server1Server2 Server3 | || ||| | DB1 DB2 DB3 DB4 DB1 permissions Read: Server1, Server3 Write: Server2 DB2, DB3, DB4 permissions Read: Server1, Server2 Write: Server2 This may protect from DB corrupts. Is it interesting concept? -- s0rr0w ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
[basex-talk] Improvements. On-fly in-memory temporary index
Hi Folks! I had one task with csv parsing and transforming. Main file contains approximately 100k of nodes. Transformation process should be in memory only, and I thought, that in-memory temporary index would be useful for this type of tasks. Useful scenario copy $clone := $csvContent modify ( tmp:optimize($clone), ... ) return $clone Main goal - increase performance with huge document fragments, modified and changed on-fly. Is it possible? ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
[basex-talk] Proposition. Execution feedback
Hi! It would be perfect to take execution feedback from GUI or server. Execution plan: N nodes Processed: K nodes It may help in script optimization and understanding complexity of xQuery task -- s0rr0w ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
[basex-talk] Proposition for the GUI features
Hi everyone! I have a nice idea, how to stop to crack the database, when user use GUI and server simultaneously. When GUI will found launched server, every updating functions should be executed through port, not directly. User may setup different connections (require list of connections), select the default connection, and choose method of connection: direct access or via saved one Sorry for my bad English. Alexander ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk