Come Back Database View Technology; All is Forgiven

September 18, 2002, 11:00 PM —  ITworld — 

I have an idea for an interesting online competition. I'd like to call
it:

"The Most Gratuitous Use of XML in a serious Web Application."

I can think of a few potential winners. I'm sure you can too.

A good place to look is for XML file formats that consist of a single
XML element housing what is called a CDATA section. A CDATA section is
XML's equivalent of super strong duct tape, capable of masking a myriad
of bletcherous[1] hacks.

Another good candidate is APIs in which every string, every integer and
every date have been laboriously and pointlessly exposed as separate Web
Services. Way to go Moore's Law[2] - without you we are doomed!

Perhaps my all-time favorite in this category is XML empty element
sprinkling. You take a model that looks, say, like this:

{\foo Hello World }

and infuse it with the XML elixir so that it becomes:



foo
Hello World

Note that I'm not saying that this sort of thing is necessarily bad;
however, it is not necessarily a good way to go about it. It also runs
the risk of being sold to the boss as a great leap forward rather than
the trivial syntax shimmy sideways, which is closer to the truth.

On reflection, maybe this competition is too easy. How about this for a
more challenging question:

"The most powerful idea ignored in the headlong rush to XML based
data modeling."

Yes, that is better! A more challenging question to be sure. I have a
few candidates in mind. However, pushed as I am to nominate one, I would
like to suggest that the well-established database technology of
creating data "views" for editing, querying, and viewing is the most
powerful idea ignored in the headlong rush to XML-based modeling.

In a traditional database, you start by modeling your data without
regard to how it will look in a report, in a data entry screen, in a
query. You break your data down into atomic pieces of particular types -
strings, integers, dates and so on. You stitch a collection of these
together into a record structure and lo! One physical database is born.

Now although you can - and for simple applications probably will - edit
data directly into this record structure. However, for any non-trivial
application you will take the opportunity to create what are known as
database "views". In these views, you set up data entry/data browsing
the way you want it. There need be no correlation between the
ordering/presentation of data in the view with the physical ordering of
data in the database.

Why am I spelling all this out? This is all drop-dead obvious stuff
right? The reason I'm spelling it out is that somewhere along the way we
seem to have lost this simple and powerful trick in the XML world.

In XML, schemata for data modeling and schemata for data entry/browsing
are typically one and the same. Put another way, the XML world does not
distinguish physical schemas from logical schemas. When configuring XML
editing systems, we feed the one and only schema - the physical model -
into the editing tool to create a customized editor/viewer/reporter.

In database land, you are much more likely to create a virtual view of
the data first and feed that to the system to create a custom
editor/viewer/reporter.

The database view approach seems extremely powerful and sensible. Yet it
does not feature a paradigm in the XML world. Odd. Don't you think?

NOTES

[1] http://www.tuxedo.org/~esr/jargon/html/entry/bletcherous.html
[2] http://www.webopedia.com/TERM/M/Moores_Law.html

» posted by ITworld staff

ITworld

Sign up for ITworld's Daily newsletter
Follow ITworld on Twitter @IT_world

I like it!
Post a comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
peer-to-peer

jfruh
Apple syncing patent can't come soon enough

pasmith
New Twitter features borrow from 3rd party clients

Esther Schindler
Open Source Changes the Software Acquisition Process

mikelgan
How to set up continuous podcast play on the new iTunes

David Strom
Five important Windows 7 mobility features

sjvn
Guard your Wi-Fi for your own sake                        

Sandra Henry-Stocker
Grepping on Whole Words

 

Sidekick: The Good News & the Bad News
Either way you look at it Microsoft Data Center management did not follow standards or best practices in this failure. In which case it makes me wonder more about the outsourcing of corporate data much less personal data.
- mburton325

Join the conversation here

The Daily Tip

The Daily TipQuick, practical advice for IT pros. Made fresh daily.

Hot tips:

Want to cash in on your IT savvy? Send your tip to tips@itworld.com. If we post it, we'll send you a $25 Amazon e-gift card.

Newsletters

Subscribe to ITWORLD TODAY and receive the latest IT news and analysis.

I would like to receive offers via email from ITworld partners.
By clicking submit you agree to the terms and conditions outlined in ITworld's privacy policy.
Featured Sponsor

AISO founders envisioned a Web hosting company that was environmentally friendly. While the company employed energy-efficient innovations like solar panels, its infrastructure produced unacceptable power and cooling requirements. Find out how AISO leveraged AMD technology to overcome their challenge in this case study white paper.

In this whitepaper, Scalar explores the opportunity to change the landscape with respect to mission critical databases built around Oracle. Leveraging technologies such as Linux, high-end commodity processing power and Oracle RAC technology to architect, design, build and maintain database infrastructure that delivers maximum availability, reliability and performance at a fraction of traditional cost.

On a typical day, weather.com, the Web site for The Weather Channel in Atlanta, serves up between 15 million and 20 million page views. But in September 2004, when back-to-back hurricanes ransacked Florida, the peak traffic on one day more than tripled: over 70 million page views by more than 7 million unique visitors. Read the full success story now.

Marketplace