Dear All,
I have found some odd behavior when using the db:add XQuery function with
the document constructor. When the root element contains a qualified
attribute, all namespaces are being dropped.
For example:
db:add('testing', document{ Text },'doc_1')
will result in the following
Dear Shahin,
thanks for your email. As your queries include a non-equality
condition (<), the existing indexes won't speed up your query.
Instead, your data is sequentially parsed, which explans the linear
increase of your query times. A future version of BaseX will include a
range index [1] -- po
> The solution appears to simply do "let $x := collection()//whatever".
..true, I forgot that; collection() can be used as well to access the
database that's currently opened in the GUI/on command line (..or in
the "current database context", if we talk about the client APIs).
I think my problem was that I do my editing in both oXygen and BaseX GUI
at the same time, oXygen providing many useful features like completion,
key bindings, commenting out of fragments containing comments, etc.
And it must have been in oXygen that I used collection() in my function
and got null
Many thanks, Christian! :-)
Piotr
On 24/01/12 23:51, Christian Grün wrote:
> Hi Piotr,
>
> yes, that's possible; please see the following example:
>
> - choose "Command" in the main window's drop box
> - enter the following command in the input field and press return:
> set bindings a=123
>
5 matches
Mail list logo