Re: What is the logic of storing XML in a Database?



On Mar 29, 10:01 am, "David Cressey" <cresse...@xxxxxxxxxxx> wrote:
"JOG" <j...@xxxxxxxxxxxxx> wrote in message

news:1175112245.717262.275350@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I'm sure there are many people who have been through the same
experience as myself using xml as a transport format:

1) Observe the popularity of XML and the supporting libraries in the
language you are working in.
2) Implement a transport layer using XML to parse messages/data etc.
3) Realise that your server/application is now over ten times slower
than it was before.
4) Remove XML and replace with something far simpler, far less verbose
and vitally far /quicker to parse/.
5) Curse XML for wasting your bloody time and never let it darken your
door again.

There are really two discussions going on in parallel in this thread.

One is about using XML for data transfer outside of a DBMS. I'm saying
"DBMS" rather than "Database" intentionally here. A DBMS can move data
across a network link, and even pass it to an inter-DBMS gateway.

The other, the one actually asked by the OP, is about declaring columns of
type XML in tables.

I use CSV for data tranfer between one DBMS and another, when I don't have
a workable gateway between the two DBMSes. It works just fine for me, and
I see no reason to add the complexity of XML.

I see no reason to store XML database inside an SQL table. Perhaps if you
wanted to keep an accurate record of the incriminating evidence.

Also, in your precis above, you implicitly refer to the "thundering herd"
argument. I buy the thundering herd argument as a reason for conforming, at
times. I don't buy it as the path to excellence. Excellent solutions are
almost always beyond the reach of the thundering herd.

The trick is to figure out when good enough is good enough, and when it's
not.
Agreed. But I am afraid that discussing the use of XML or CSV quickly
becomes a sterile debate. I did it in the purpose to trigger some
questions about XML.

View network sharing seems however to be the only fundamentally
optimal solution. The receiver of some EDI information is simply a
remote user from the perspective of the dbms. In such perspective,
defining views the receiver can interpretate and openning the right
ports (with an adequate TCPIP topology) is much simpler than adding an
entire applicative layer to handle the *carrying* of some
encapsulated message. In other words, I strongly doubt of the real
need for sending a message (be it CSV or XML or anything) as opposed
to simply sharing a view.


.



Relevant Pages

  • Re: What is the logic of storing XML in a Database?
    ... experience as myself using xml as a transport format: ... Observe the popularity of XML and the supporting libraries in the ... I stopped worrying too much about performance when I realised it was cheaper ... Efficiency is a measure of output per unit of input. ...
    (comp.databases.theory)
  • Re: What is the logic of storing XML in a Database?
    ... there are different aspects to XML. ... There really are people who think that XML databases are a good thing ... But why would you be unhappy about XML as a transport format? ...
    (comp.databases.theory)
  • Re: What is the logic of storing XML in a Database?
    ... experience as myself using xml as a transport format: ... Observe the popularity of XML and the supporting libraries in the ... I see no reason to store XML database inside an SQL table. ... Also, in your precis above, you implicitly refer to the "thundering herd" ...
    (comp.databases.theory)
  • Re: What is the logic of storing XML in a Database?
    ... experience as myself using xml as a transport format: ... Observe the popularity of XML and the supporting libraries in the ... Realise that your server/application is now over ten times slower ...
    (comp.databases.theory)
  • Re: Problem with creating classes as runtime - PLEASE HELP
    ... represent the data and set a propertyGrid control's SelectedObject ... Then I can serialize the runtime class to create my XML ... file that conforms to the schema I was originally given. ... The reason for the Collection class is for nested elements in the ...
    (microsoft.public.dotnet.languages.csharp)