[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Better way to structure XQuery

Wolfgang wolfgang at exist-db.org
Wed Jul 8 22:56:01 PDT 2009


  Better way to structure XQuery
> I don't know if this helps, but you your query could be simplified as follows:
> 
>   let $mydoc := doc('http://localhost:8080/exist/rest/db/bio.xml')

As another side note, using an http uri here is unnecessary and makes 
the query slow. eXist will assume that you are referencing an external 
document (ignoring the 'localhost') and will retrieve it into memory. 
Better use doc('/db/bio.xml') to have eXist access the document tree 
which is already stored in the db.

Wolfgang


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.