[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Granularity

  • From: Michael Kay <mike@saxonica.com>
  • To: xml-dev@lists.xml.org
  • Date: Fri, 06 Jan 2012 07:29:03 +0000

Re:  Granularity
On 06/01/2012 00:14, Len Bullard wrote:
8044FBBA608F4BAEACD54B9453165FD9@LenBullardPro" type="cite">

When building XML systems, how do you choose the best granularity for storing and retrieving fragments? 

 


Not entirely sure what you mean by a "fragment": is your question "how much data goes in one XML document"? That is indeed a difficult question. The decision tends to be made for operational reasons rather than pure data modelling reasons, and is thus an example of how XML fails to make a clear distinction between logical and physical design in the way that database people have been advocating for decades.

Many XML databases work best when you have lots of small documents; a few work well when you have one giant all-embracing document. That's a factor that can't be ignored in your design, even though one would like to.

Another factor is that the document is often the unit of validation. Cross-document validation is generally awkward.

Similarly, the fact that documents are the unit of interchange affects the decision (sometimes it rightly dominates the decision).

There are many applications where "one document per business object" works well: e.g. in a system managing data about hotels, one document per hotel. But where do you put the information about room availability? One document per hotel per night? It starts to become very arbitrary. That's one reason why there will always be a need for transformations.

Michael Kay
Saxonica

  • References:
    • Granularity
      • From: "Len Bullard" <cbullard@hiwaay.net>

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.