Re: [basex-talk] question

2015-07-29 Thread Florent Georges
Hi, That would base the type annotation on the lexical value. For instance, the string '0' would be labelled as integer (given you test for xs:integer before xs:string): let $var := '0' return if ( $var castable as xs:integer ) then 'integer' else if ( $var castable as xs:string )

Re: [basex-talk] question

2015-07-29 Thread Eliot Kimber
I believe you need to use the castable as or instance of operators to determine the type, e.g.: let $typeName := if ($somevar castable as xs:integer) then 'integer' else if ($somevar castable as xs:string) then 'string' else 'unknown type' Or something close to that. There

[basex-talk] No debug info

2015-07-29 Thread Menashè Eliezer
Hello, I don't know why I don't see anymore query log events like admin OK QUERY in the .logs folder. Not even when I use the -d flag. BaseX 8.2.2 -- With kind regards, Menashè

[basex-talk] Applying indexes

2015-07-29 Thread Menashè Eliezer
Hello, 1. In which cases the applying index phrase should I see in the query plan? I have an old query (the one I've sent here at 06/22/2015) where only for one condition I've seen applying index, and even this one doesn't appear anymore using a newer (8.2.2) version of BaseX and a

Re: [basex-talk] question

2015-07-29 Thread Eliot Kimber
I am happy to be corrected. Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com On 7/29/15, 10:42 AM, Florent Georges fgeor...@gmail.com on behalf of li...@fgeorges.org wrote: Hi, That would base the type annotation on the lexical value. For instance, the string '0'

[basex-talk] Query plan: long printing

2015-07-29 Thread Menashè Eliezer
Hello, I have a query which is quite fast, but I see in the query plan (Using the client GUI) that the printing is very very slow, even when the number of hits is zero. I wonder what it means, and it is a problem. I'm sending these messages in different posts for helping users

Re: [basex-talk] Performance and heavy load

2015-07-29 Thread Martín Ferrari
Hi Christian, I've dug more into this problem. We've installed BaseX 8.2.3 on our Linux box. It looks like insertions get slower as the DB grows. With an empty database, I'm able to insert 5000 10kb files in 104 secs. However, with a DB of around 800MB, the same test takes around six

Re: [basex-talk] Performance and heavy load

2015-07-29 Thread Martín Ferrari
Well, I've played around a bit more. I've set:AUTOFLUSH=falseTEXTINDEX=falseATTRINDEX=false Also, I'm using the C# client instead of the REST one, and also using a pool of connections so as to avoid issuing an extra Open() call each time a file is sent to the server. Inserting 5000

[basex-talk] question

2015-07-29 Thread Rob Stapper
Hello, I must be overlooking something, so excuses in advance, but: How can I retrieve the datatype of a variable? TIA, Rob Stapper --- Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware. https://www.avast.com/antivirus