Re: [bdbxml] collections

Jim Endicott <[email protected]> Fri, 5 Aug 2005 17:38:55 +0000 (UTC)
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
> 
> Performance should not be an issue, if you create the right indexes
> to narrow the searches.
> 
> As for hierarchical containers and naming, the argument to the  
> collection()
> function in XQuery is implementation defined.  eXist has chosen
> to make collections hierarchical, but that is a product-specific choice.
> 
> BDB XML has a flat container name space.  An API to group containers
> for convenience in querying has been proposed, but not yet implemented.
> However, you can easily do what you want (query 1, 2 or 3 containers)  
> using XQuery
> itself.  For example, if you name your containers x, y, and z, you  
> can do any
> one of:
>      for $i in collection('x') ...
>      for $i in collection('y') ...
>      for $i in (collection('x'),collection('y'))...
>      for $i in (collection('x'),collection('z))...
>      for $i in (collection('x'),collection('y'),collection('z'))...
> etc.
> You get the idea.
> 
> Regards,
> 
> George
Thanks for the reply.... an additional question about container types.
From what I have read my sitiation with a large number of very small documents
where I will always be returning the whole document through a query and
replacing the whole document for updates, the best choice is to use a Wholedoc
container. Is that correct? Also it is still possible to define indexes on nodes
and attributes when Wholedoc is used?

Jim




------------------------------------------
To remove yourself from this list, send an
email to [email protected]