[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

Stacy.Ladnier at noaa.gov Stacy.Ladnier at noaa.gov
Wed Jul 8 16:01:47 PDT 2009


  Better way to structure XQuery
Absolutely. I have the full URI right now only because I was testing in
an editor outside of exist. When put in, I will definitely use the more
appropriate reference.

----- Original Message -----
From: Wolfgang <http://x-query.com/mailman/listinfo/talk>
Date: Wednesday, July 8, 2009 2:56 pm
Subject: Re:  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.