20100712: Upgrade to OSQA r516. Let me know if you experience any new issues. 20100708: Fixed the RSS feed.

Steve Yegge writes about the properties pattern here: http://steve-yegge.blogspot.com/2008/10/universal-design-pattern.html

In the section labled "Persistence" he mentions XML databases being a good fit for persisting property lists. He lists the advantages of an XML database as it is a "hierarchical data store optimized for loose tree structures", and it has XPath and XQuery to query that persisted data.

It sounds to me like MongoDB would have these same advantages: documents can be stored hierarchically, and it has a query language. Is this an accurate assessment? Does anyone have any experience actually persisting property lists using MongoDB or an XML db?

asked Jul 07 '10 at 18:42

robertguiscard's gravatar image

robertguiscard
16113


XQuery is more expressive than MongoDB's query language. MongoDB is probably better supported and faster than most XML databases.

I would say that if you wish to query tree-like data structures you are better off expressing them in JSON, loading into MongoDB and querying there. If you have marked up documents, leave them in XML and put them in an XML database.

XML is overkill for object persistence. It should be left for markup...

answered Nov 25 '11 at 05:16

JPX's gravatar image

JPX
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×2
×1
×1
×1
×1
×1

Asked: Jul 07 '10 at 18:42

Seen: 848 times

Last updated: Nov 25 '11 at 05:16

powered by OSQA

User submitted content is under Creative Commons: Attribution - Share Alike; Other things copyright (C) 2010, MetaOptimize LLC.