logo       

Re: [bdbxml] Cross Query Performance Issues: msg#00009

Subject: Re: [bdbxml] Cross Query Performance Issues
Deepak Jois wrote:
So, my two questions are :
- Does DBXML optimise by taking into account the fact that
enzyme.dbxml has fewer records than upt_swissprot.dbxml

No, not yet - but I don't think that is the problem you are seeing, since both queries access the containers in the same order.

- In any case, why does the first query take a disproportionately long
time as to not return even within an hour, when the second query which
seems equivalent returns almost instantaneously.

This puzzled me for a while. My current corollary from looking at the query plan for the two queries is that it is to do with the size of the expressions on either side of the "=" operator. Can you try this query, and see if it is even faster:

for $x in collection("enzyme.dbxml")/gnv_enzyme_pathway/
  db_entry[contains(enzyme_description,"cyclase")]/
  swissprot_reference_list/reference/@swissprot_accession_number
for $z in collection("upt_swissprot.dbxml")/uniprot/
  entry[accession = $x]
return ($z/name, $z/accession)

If this is faster, then that may support my idea of what is going on.

John

--
John Snelson, Berkeley DB XML Engineer
Sleepycat Software, Inc
http://www.sleepycat.com

Contracted to Sleepycat through Parthenon Computing Ltd
http://blog.parthcomp.com/dbxml


------------------------------------------
To remove yourself from this list, send an
email to xml-unsubscribe-E1rGyZxLSgzby3iVrkZq2A@xxxxxxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe