|
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? |
|
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... |