Engineering Tradeoffs

View: New views
3 Messages — Rating Filter:   Alert me  

Engineering Tradeoffs

by Timothy Washington :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I'm writing a small application and I'm wondering about a few technical issues that have to be decided. I was wondering what people's thoughts were regarding these points.

A) What are the tradeoffs of using i) XQuery Update Facility vs. ii) XUpdate. The application will do frequent addition and updates to XML documents. So the documents will grow. I will be using XML:DB (eXist) and XPath to access and locate information in the database.

B) If I am using an native XML database, does the XPath expression "//aa//dd" apply to the structure in fig. 3.

C) Is it more efficient to use sub-directories (fig. 3) or a full document (fig. 2) if I use the xpath expression ( //aa//dd ).

<aa>
    <bb>
        <cc>
            <dd/>
        </cc>
        <cc>
            <dd/>
        </cc>
    </bb>
    <bb>
        <cc>
            <dd/>
        </cc>
    </bb>
</aa>
fig. 2

<aa>
    bb1/
        <cc>
            <dd/>
        </cc>
        <cc>
            <dd/>
        </cc>
    bb2/

        <cc>
            <dd/>
        </cc>
</aa>
fig. 3


Thanks in advance for any help
Tim




Yahoo! Canada Toolbar : Search from anywhere on the web and bookmark your favourite sites. Download it now!


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Engineering Tradeoffs

by Dannes Wessels-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Wed, Sep 17, 2008 at 3:36 AM, Timothy Washington <timothyjwashington@...> wrote:
C) Is it more efficient to use sub-directories (fig. 3) or a full document (fig. 2) if I use the xpath expression ( //aa//dd ).

Hmmmm there is no 'out of the box' answer for this. It really depends on the number of documents you think that will be present etc. Further more, fig 3. does not make sense, right? a collection in an xml element does not make sense....

regards

Dannes

--
eXist-db Native XML Database
http://exist-db.org

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Parent Message unknown Re: Engineering Tradeoffs

by Timothy Washington :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi Dannes , thanks for the feedback.

I wasn't sure if XPath accommodated directories (collections). I didn't think so, but I wanted to check. In that case, I'll have to come up with a mapping where children of a collection will be child nodes of an element. The reason I asked that question was because I know eXists's indexing scheme is supposed to be very efficient. So my application will have i) large XML documents ii) frequently updated that iii) will constantly grow. So I'm trying to decide if and where to use collections.

Cheers
Tim

----- Original Message ----
From: Dannes Wessels <dizzzz@...>
To: Timothy Washington <timothyjwashington@...>
Cc: exist-open@...
Sent: Wednesday, September 17, 2008 3:02:18 AM
Subject: Re: [Exist-open] Engineering Tradeoffs

Hi,

On Wed, Sep 17, 2008 at 3:36 AM, Timothy Washington <timothyjwashington@...> wrote:
C) Is it more efficient to use sub-directories (fig. 3) or a full document (fig. 2) if I use the xpath expression ( //aa//dd ).

Hmmmm there is no 'out of the box' answer for this. It really depends on the number of documents you think that will be present etc. Further more, fig 3. does not make sense, right? a collection in an xml element does not make sense....

regards

Dannes

--
eXist-db Native XML Database
http://exist-db.org


Now with a new friend-happy design! Try the new Yahoo! Canada Messenger
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open
LightInTheBox - Buy quality products at wholesale price!