Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XML DB

1 view
Skip to first unread message

Falanga Alain

unread,
Nov 29, 2006, 3:49:09 AM11/29/06
to
Hi,

I need a database tha can store XML (not really a problem for example I
can use a Longtext, clob or anyother think like this) and all course a
way to request (XQuery, XPath ?) this ?

I have try MySQL 5 that seams to do this, but from now I always
research information.

Do you know for example if Firebird, NexusDB, PostgresSQL or other
handle this and how ?

I'm looking for a free database if possible that can handle this. I
have a large amount of data to store / request (1 Tb), so performance
is important.

Thanks for all your feedback at advance.
Cheers,
A.

--
Ceci est une signature automatique de MesNews.
Site : http://www.mesnews.net


Martijn Tonies

unread,
Nov 29, 2006, 4:45:22 AM11/29/06
to

> I need a database tha can store XML (not really a problem for example I
> can use a Longtext, clob or anyother think like this) and all course a
> way to request (XQuery, XPath ?) this ?
>
> I have try MySQL 5 that seams to do this, but from now I always
> research information.
>
> Do you know for example if Firebird, NexusDB, PostgresSQL or other
> handle this and how ?
>
> I'm looking for a free database if possible that can handle this. I
> have a large amount of data to store / request (1 Tb), so performance
> is important.

If performance is important, then don't use XML. Break it up into a
decent relational schema and do normal SQL instead.


--
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com


Pierre Y.

unread,
Nov 29, 2006, 4:59:02 AM11/29/06
to
Il se trouve que Falanga Alain a formulé :

> Hi,
>
> I need a database tha can store XML (not really a problem for example I can
> use a Longtext, clob or anyother think like this) and all course a way to
> request (XQuery, XPath ?) this ?
>
> I have try MySQL 5 that seams to do this, but from now I always research
> information.
>
> Do you know for example if Firebird, NexusDB, PostgresSQL or other handle
> this and how ?
>
> I'm looking for a free database if possible that can handle this. I have a
> large amount of data to store / request (1 Tb), so performance is important.
>
> Thanks for all your feedback at advance.
> Cheers,
> A.

Did you give a look at Bekerley DB "XML" from SleepyCat (acquired by
Oracle) ?

http://www.oracle.com/database/berkeley-db/xml/index.html

--
Pierre Y.


Femi Fadayomi

unread,
Nov 29, 2006, 4:34:25 AM11/29/06
to

>
> I'm looking for a free database if possible that can handle this. I
> have a large amount of data to store / request (1 Tb), so performance
> is important.
>

DB2 Express-C by IBM. Here is where to get additional Information:
http://www-306.ibm.com/software/data/db2/express/getstarted.html

HTH
Femi

Chris Morgan

unread,
Nov 29, 2006, 7:38:48 AM11/29/06
to
> I need a database tha can store XML (not really a problem for example I
> can use a Longtext, clob or anyother think like this) and all course a way
> to request (XQuery, XPath ?) this ?
>
> I have try MySQL 5 that seams to do this, but from now I always research
> information.
>
> Do you know for example if Firebird, NexusDB, PostgresSQL or other handle
> this and how ?
>
> I'm looking for a free database if possible that can handle this. I have a
> large amount of data to store / request (1 Tb), so performance is
> important.
>
> Thanks for all your feedback at advance.
> Cheers,
> A.

Apparently Oralce can store XML natively, with built-in support
for querying the XML via SQL.

There is a free Oracle Lite version available.

We use Oracle, but not its XML capability, and have not tried
installing/using the Lite version, so I don't know how easy (or
not) it is to configure.

Cheers,

Chris

Falanga Alain

unread,
Nov 29, 2006, 8:45:07 AM11/29/06
to
Martijn Tonies a formulé ce mercredi :

>> I need a database tha can store XML (not really a problem for example I
>> can use a Longtext, clob or anyother think like this) and all course a
>> way to request (XQuery, XPath ?) this ?
>>
>> I have try MySQL 5 that seams to do this, but from now I always
>> research information.
>>
>> Do you know for example if Firebird, NexusDB, PostgresSQL or other
>> handle this and how ?
>>
>> I'm looking for a free database if possible that can handle this. I
>> have a large amount of data to store / request (1 Tb), so performance
>> is important.
>
> If performance is important, then don't use XML. Break it up into a
> decent relational schema and do normal SQL instead.

XML as this think that is excelent is that is not "relationalated"
define that why we used it, so putting all inside a relational schema
is not our choice ... You are right for the other part (DB Oriented
version) off course.

Martijn Tonies

unread,
Nov 29, 2006, 9:15:55 AM11/29/06
to

> >> I need a database tha can store XML (not really a problem for example I
> >> can use a Longtext, clob or anyother think like this) and all course a
> >> way to request (XQuery, XPath ?) this ?
> >>
> >> I have try MySQL 5 that seams to do this, but from now I always
> >> research information.
> >>
> >> Do you know for example if Firebird, NexusDB, PostgresSQL or other
> >> handle this and how ?
> >>
> >> I'm looking for a free database if possible that can handle this. I
> >> have a large amount of data to store / request (1 Tb), so performance
> >> is important.
> >
> > If performance is important, then don't use XML. Break it up into a
> > decent relational schema and do normal SQL instead.
>
> XML as this think that is excelent is that is not "relationalated"
> define that why we used it, so putting all inside a relational schema
> is not our choice ... You are right for the other part (DB Oriented
> version) off course.

Disagreed. XML is good for data interchange and all, but not for
decent complex storage.


--
Martijn Tonies
Database Workbench - development tool for Firebird and more!

Brian Moelk

unread,
Nov 29, 2006, 3:25:45 PM11/29/06
to
Falanga Alain wrote:
> I need a database tha can store XML (not really a problem for example I
> can use a Longtext, clob or anyother think like this) and all course a
> way to request (XQuery, XPath ?) this ?

SQL Server?

> I'm looking for a free database if possible that can handle this. I have
> a large amount of data to store / request (1 Tb), so performance is
> important.

One of the most interesting native XML databases to me is:

http://exist.sourceforge.net/

It's Java so I doubt it will be very speedy, but it's interesting
nonetheless.

--
Brian Moelk
Brain Endeavor LLC
bmo...@NObrainSPAMendeavorFOR.MEcom

William Egge

unread,
Nov 30, 2006, 8:28:02 AM11/30/06
to
I disagree. The supposed problem is because XML is text, but you do not
need to store the XML as text but instead parse it before storage and then
you can optimized the internal structure for querying. Only input and
output need be translated to text.

Martijn Tonies

unread,
Nov 30, 2006, 9:22:25 AM11/30/06
to

No, the supposed problem is because XML is hierarchic, which is slow.

That's why relational database management systems were invented.


--
Martijn Tonies


Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server

Piotr Szturmaj

unread,
Nov 30, 2006, 12:06:26 PM11/30/06
to
> I need a database tha can store XML (not really a problem for example I
> can use a Longtext, clob or anyother think like this) and all course a way
> to request (XQuery, XPath ?) this ?

There is a contrib module xml2 for PostgreSQL. It supports querying by
XPath.


William Egge

unread,
Dec 1, 2006, 9:03:26 AM12/1/06
to
Hierarchal is relational, I don't see your point.

-Bill


Uffe Kousgaard

unread,
Dec 2, 2006, 3:29:06 AM12/2/06
to
"Martijn Tonies" <m.to...@upscene.removethis.com> wrote in message
news:456ee98b$1...@newsgroups.borland.com...

>
> No, the supposed problem is because XML is hierarchic, which is slow.

No, the problem with xml is the lack of random access to records. And all
the parsing of text involved.

Regards
Uffe


Martijn Tonies

unread,
Dec 3, 2006, 4:15:26 PM12/3/06
to
> Hierarchal is relational, I don't see your point.

But hierarchic access is very different.

William Egge

unread,
Dec 4, 2006, 8:19:27 AM12/4/06
to
>But hierarchic access is very different.

I still don't see your point, relational data is normally hierarchic.
Client > Orders for example.

-Bill


William Egge

unread,
Dec 4, 2006, 8:26:35 AM12/4/06
to
> No, the problem with xml is the lack of random access to records. And all
> the parsing of text involved.

The parsing of text can be gotten around on the storage level, text parsing
at most effects input and output but not nessesarily the query engine.

I agree about randomn access, but that only applies if you strictly maintain
the heiarcle structure. I am more inclined to say you should not have an
XML DB but an OODB instead and use XML as an easy format for input/output.

-Bill

Martijn Tonies

unread,
Dec 4, 2006, 9:23:35 AM12/4/06
to
> >But hierarchic access is very different.
>
> I still don't see your point, relational data is normally hierarchic.
> Client > Orders for example.

Eh, sure, but to get to Orders, you don't have to "walk" all clients.

Franz-Leo Chomse

unread,
Dec 4, 2006, 10:25:04 AM12/4/06
to

which is represented by a client reference in the orders table.

A pure hierarchic database is basically a system of nested tables.
The major difference is the fact that the contents of a "sub" table
in a hierarchic system is ordered, i.e. you access a record by its
position inside the table.

A relational database can support hierarchical data only if it gets
flattened out by adding two fields for each level of hierarchy -
key value and record number.

In a relational database you normally have only one read operation
for a specific record (if you know its primary key). In a hierarchic
database you have a read operation for each level.

Regards from Germany

Franz-Leo


William Egge

unread,
Dec 5, 2006, 8:39:02 AM12/5/06
to
> Eh, sure, but to get to Orders, you don't have to "walk" all clients.

I am not an advocate of an XML DB, but this discussion is about performance
and not its structure.

The walking is only specified by the query, but execution does not have to
match the query. The final output drives the optimization.

For instance, if you wanted just orders, your query in XSL would walk the
clients but only output orders. Imagine that the XML data was stored in a
relational database - then there would be an orders table and then the
optimized execution would be a simple select on that table without any
client walking. In this case there would be no performance difference
between an XML DB and a Relational Database.


-Bill


Martijn Tonies

unread,
Dec 5, 2006, 10:25:07 AM12/5/06
to
> > Eh, sure, but to get to Orders, you don't have to "walk" all clients.
>
> I am not an advocate of an XML DB, but this discussion is about
performance
> and not its structure.

Yes, that is true. In the past, hierarchic databases haven proven to
be:
- inflexible
- incapable
- and slow.

The relational model was created to avoid these problems. The
performance is, indeed, an implementation problem. Nevertheless,
a relational storage system is much more flexible than XML.

> The walking is only specified by the query, but execution does not have to
> match the query. The final output drives the optimization.
>
> For instance, if you wanted just orders, your query in XSL would walk the
> clients but only output orders. Imagine that the XML data was stored in a
> relational database - then there would be an orders table and then the
> optimized execution would be a simple select on that table without any
> client walking. In this case there would be no performance difference
> between an XML DB and a Relational Database.

0 new messages