dbTalk Databases Forums  

Berkeley DB XML: Performance problems for queries

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Berkeley DB XML: Performance problems for queries in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
engdahl@bredband.net
 
Posts: n/a

Default Berkeley DB XML: Performance problems for queries - 01-31-2006 , 08:26 AM






Hi,


I am developing a db using Berkley DB XML for storing a (fairly large)
document with many nodes. The data is structured in a very simple way
and I am using a Node type container.
Since I am experiencing quite bad performance when running queries I
have started experimenting with indices. The problem is that I don't
see any improvement after creating the index. I have tried many
different types of indices but without luck (queries are still slow).
I can see that the indices have been created ok (by listing them
afterwards) and with the help of the qplan command (in the Berkeley db
xml shell) I can see that the query will use the index.

Just for testing I made up an even simpler structure,looking something
like...

<Root>
<A><B>1</B></A>
<A><B>2</B></A>
<A><B>3</B></A>
<A><B>4</B></A>
<A><B>5</B></A>

Reply With Quote
  #2  
Old   
John Snelson
 
Posts: n/a

Default Re: Berkeley DB XML: Performance problems for queries - 02-01-2006 , 06:06 AM






Hi Mikael,

It looks like your coming accross a current known issue with the
storage format - materializing a node with a large number of children
is very slow. We are currently looking into ways to solve this problem.

In the mean time, maybe a faster structure for your container would be
to store each "A" element in it's own document in the collection. This
should be a lot faster for you.

John


Reply With Quote
  #3  
Old   
engdahl@bredband.net
 
Posts: n/a

Default Re: Berkeley DB XML: Performance problems for queries - 02-06-2006 , 03:42 AM



Thanks :-)
That made a world of difference!

/Mikael


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.