Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Berkely DB > XQuery Performa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1726 of 1800
Post > Topic >>

XQuery Performance in BerkeleyDB

by "Suresh" <sbkumar@[EMAIL PROTECTED] > Mar 19, 2007 at 10:51 AM

We are migrating from IPedo to Berkeley DB.

IPedo did not support multiple indices in their Xqueries, so we had to
concatenate some fields in to one field and index that field, the
Xqueries were really fast.

Unfortunately the same XQuery does not perform well in BerkeleyDB.

This is how we create the index for this filed (ContentKey) in
BerkeleyDB

addIndex '' 'ContentKey' edge-element-equality-string

and this is how I query using Java API.

queryContext.setEvaluationType(XmlQueryContext.Eager);
queryContext.setVariableValue("ContentKey", new XmlValue(
	    "a0a0188000001115348efcc00000003XXXXXXXXXXXXXYYYYYYYYYYYYYY"));
// Declare the query string
String myQuery = "collection('db/title')/Record[ContentKey=
$ContentKey]";
// Prepare (compile) the query
XmlQueryExpression xmlQueryExpression =
dbManager.prepare(myQuery,queryContext);

1. What is wrong with the index or the way I am using the Java API ?
Changing the evaluation type to Lazy did not help at all.

2. The Query performs OK in dbxml.

3. Are there any other commercial/open source tools to evaluate the
performance of a Xquery in BerkeleyDB? Stylus Studio does not support
BDB - 2.3.10 yet.

Any help would be appreciated.

Thanks,
Suresh




 1 Posts in Topic:
XQuery Performance in BerkeleyDB
"Suresh" <sb  2007-03-19 10:51:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Jul 4 22:58:17 CDT 2008.