niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Berkeley DB
Berkeley DBXML vs eXist - tuning Berkeley?
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
tfga
*nix forums beginner


Joined: 15 Jul 2006
Posts: 1

PostPosted: Sat Jul 15, 2006 1:02 am    Post subject: Berkeley DBXML vs eXist - tuning Berkeley? Reply with quote

Hi I've been trying to compare Berkeley and eXist performance. Im doing
this through PHP and specific queries because thats what I need for my
project, but even though the odds are against it eXist seems faster!?

eXist (java, no JIT) is running on Apache Tomcat and PHP 5 communicates
using SOAP (all on same machine) using a very beta 3rd party PHP module.
Berkeley is called using their own PHP module. A typical result from my
test script might look something like this:

(A) Berkely DBXML. returned 18 articles
query:let $con := collection("test.dbxml")
for $x in $con/metadata
where $x/labels/s="bob"
return $x/id

(B) eXist XML DB. returned 18 articles
query:for $x in /metadata
where $x/labels/s="bob"
return $x/id

Timings: A:0.2554 sec, B:0.245 sec, Total:0.5004

Looking for <s>bob<b> in a <labels> tag which may have several other
<s>, Im using indexing, does anyone have any ideas whats going on and
if I can improve speeds?


--
tfga
------------------------------------------------------------------------
tfga's Profile: http://www.dbtalk.net/m535
View this thread: http://www.dbtalk.net/t319425
Back to top
George Feinberg
*nix forums beginner


Joined: 21 Nov 2005
Posts: 11

PostPosted: Mon Jul 17, 2006 4:01 pm    Post subject: Re: Berkeley DBXML vs eXist - tuning Berkeley? Reply with quote

Hello,

There are various configuration/coding things that could cause
your results.
This discussion could get interactive. Let's take it off the group.
Please respond directly to gmf@sleepycat.com.

A few questions:
1. Are you creating a new XmlManager and opening the container
on each request? If so, you should not?
2. Are you measuring the results from a number of queries (i.e.
getting a caching effect)? If the answer to 1 was "yes" then
you are not.
3. Are you sure your indexes are being used?
4. How large is your container?

Regards,

George


tfga wrote:
Quote:
Hi I've been trying to compare Berkeley and eXist performance. Im doing
this through PHP and specific queries because thats what I need for my
project, but even though the odds are against it eXist seems faster!?

eXist (java, no JIT) is running on Apache Tomcat and PHP 5 communicates
using SOAP (all on same machine) using a very beta 3rd party PHP module.
Berkeley is called using their own PHP module. A typical result from my
test script might look something like this:

(A) Berkely DBXML. returned 18 articles
query:let $con := collection("test.dbxml")
for $x in $con/metadata
where $x/labels/s="bob"
return $x/id

(B) eXist XML DB. returned 18 articles
query:for $x in /metadata
where $x/labels/s="bob"
return $x/id

Timings: A:0.2554 sec, B:0.245 sec, Total:0.5004

Looking for <s>bob<b> in a <labels> tag which may have several other
s>, Im using indexing, does anyone have any ideas whats going on and
if I can improve speeds?
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 11:41 pm | All times are GMT
navigation Forum index » Databases » Berkeley DB
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts AIX performance tuning jpzhai@gmail.com AIX 5 Fri Jul 21, 2006 2:27 am
No new posts Berkeley db XML & FreeBSD mo Berkeley DB 0 Thu Jul 20, 2006 9:15 pm
No new posts problem updatenodes in dbxml mahdieh Berkeley DB 0 Thu Jul 20, 2006 5:15 pm
No new posts access method "gin" does not exist Kevin Murphy PostgreSQL 0 Thu Jul 20, 2006 4:25 pm
No new posts Qmail / SpamControl => Check if DNS exist ? Phibee NOC Qmail 2 Thu Jul 20, 2006 4:51 am

Debt Consolidation | Loans | Online Advertising | Valentine's Day Gifts | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.8467s ][ Queries: 16 (0.3841s) ][ GZIP on - Debug on ]