Comparing XML and Relational Storage: A Best Practices Guide

Comparing XML and relational storage: A best practices guide


Comparing XML and Relational Storage: A Best Practices Guide - cover page
Category
Other
Document type
Other
Language
English
Pages
20
File format
PDF
File size
180 KB
Published
02 December, 2023
Updated
02 December, 2023
MD5 checksum
EFEC7110BE1E25A0296AEDAFA2C8BD01

About this manual

This March 2005 best practices guide compares XML storage with relational database storage. It explains differences such as XML being self-describing, hierarchical and sequence-oriented, while relational models are set-oriented.

The document covers when to choose XML or a relational model, design trade-offs, a unified XML/relational database, five data cases, and customer usage scenarios. It discusses flexibility versus performance and situations where each storage approach may be preferred.

What's inside

  • When to choose XML storage or a relational model
  • Design trade-offs
  • What is a unified XML/relational database?
  • Case 1a: Data has inherent hierarchical relationships
  • Case 1b: Data has multiple inherent hierarchical relationships
  • Case 2: Data has containment relationships
  • Case 3: Data has sparse attributes or a large number of attributes
  • Case 4: Schema evolution
  • Case 5: Highly variable or multiple schema
  • Customer usage scenarios

Frequently asked questions

When is XML storage beneficial for volatile schema?

The guide says a highly volatile schema can be expressed as a single XML column, and XML is self-describing.

What is the principal trade-off between XML and relational schemas?

The principal trade-off is flexibility versus performance: XML offers flexibility but can add CPU and I/O cost, while relational models generally perform better.

When might a relational model be preferred over XML?

The guide lists downstream relational processing, the highest possible performance requirements, and naturally tabular data as situations where relational storage may be the correct choice.

Download PDF (180 KB)

Also Manuals