Re: [bdbxml] Performance issue of DBXML-2.1.8
Michael Allman <[email protected]> Thu, 11 Aug 2005 01:36:55 -0400 (EDT)
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <20050811013110.Q9284@yvyyl> |
Manjeet, Given that your unique id attribute is the same as the document name, I think you'll find one of the getDocument() methods will perform best. However, you can still do a fast lookup on id without setting id == name. Just use one of these: http://www.sleepycat.com/xmldocs/java/com/sleepycat/dbxml/XmlContainer.html#lookupIndex(com.sleepycat.dbxml.XmlQueryContext,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20com.sleepycat.dbxml.XmlValue) http://www.sleepycat.com/xmldocs/java/com/sleepycat/dbxml/XmlContainer.html#lookupIndex(com.sleepycat.dbxml.XmlQueryContext,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20com.sleepycat.dbxml.XmlValue,%20com.sleepycat.dbxml.XmlDocumentConfig) http://www.sleepycat.com/xmldocs/java/com/sleepycat/dbxml/XmlContainer.html#lookupIndex(com.sleepycat.dbxml.XmlTransaction,%20com.sleepycat.dbxml.XmlQueryContext,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20com.sleepycat.dbxml.XmlValue) http://www.sleepycat.com/xmldocs/java/com/sleepycat/dbxml/XmlContainer.html#lookupIndex(com.sleepycat.dbxml.XmlTransaction,%20com.sleepycat.dbxml.XmlQueryContext,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20com.sleepycat.dbxml.XmlValue,%20com.sleepycat.dbxml.XmlDocumentConfig) Michael On Wed, 10 Aug 2005, Manjeet Chaudhary wrote: > hello friends, > > I want to know the following thing about dbxml-2.1.8 version > whether getting a document from a container using getdocument method will be > faster or > getting a document from a container by querying (XQUERY ) the container will > be faster . > Each document stored in the container has a attribute "id" to the root > element which is unique (will be used in Xquery) (also the container is > indexed as "" "id" "node-attribute-equality-string" ) and the same is the > key of the document with which it is stored in the container. > thanks in advance. > > Regards > Manjeet Ch > > > ------------------------------------------ > To remove yourself from this list, send an > email to [email protected] > ------------------------------------------ To remove yourself from this list, send an email to [email protected]