|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] Better way to structure XQueryStacy.Ladnier at noaa.gov Stacy.Ladnier at noaa.govWed Jul 8 16:01:47 PDT 2009
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






