Hi Christian,
Thank you for your valuable help!
With kind regards,
Menashè
On 04/30/2015 06:50 PM, Christian Grün wrote:
Hi Menashè,
The following query is really fast.
This should even be faster:
let $ids := (161,891)
for $id in $ids
return db:open-id(collection_name, $id)
Hello,
I'm using Java org.xmldb.api package for accessing the Basex server
(xmldb:basex://...)
After getting the resultSet I need to make further queries about the
requested subset (for reporting, etc.)
I have seen that getId() cannot be used since the Resource will be
anonymous if it is
And:
XQuery has no formal notion of files inside a database/collection
http://stackoverflow.com/questions/3363442/refer-to-a-specific-document-in-a-basex-db-using-xquery
With kind regards,
Menashè
On 04/30/2015 02:49 PM, Menashè Eliezer wrote:
Hello,
I'm using Java org.xmldb.api package for
Hi Menashé,
If you want to directly address XML nodes of a BaseX database, you can
use the db:node-pre/db:open-pre or db:node-id/db:open-id functions.
Please have a look at the Wiki for more information [1].
Hope this helps,
Christian
[1]
Hi Menashè,
The following query is really fast.
This should even be faster:
let $ids := (161,891)
for $id in $ids
return db:open-id(collection_name, $id)
Should I use it also for thousands of
possible values instead of creating a temporal collection of the subset?
If the id approach
Hi Christian,
Thank you for this valuable reply!
The following query is really fast. Should I use it also for thousands
of possible values instead of creating a temporal collection of the subset?
let $ids := (161,891)
for $x in collection(collection_name)
where db:node-id($x)=$ids
return ...
6 matches
Mail list logo