Storing data in XML or MongoDB
Posted
by
user766473
on Stack Overflow
See other posts from Stack Overflow
or by user766473
Published on 2011-11-15T01:46:52Z
Indexed on
2011/11/15
1:51 UTC
Read the original article
Hit count: 132
Here is my usecase. 1.Have some data, which I am storing now in the xml files. The data that I am storing is not persistent i.e I would be deleting the user data once the user logs out. 2.My server communicates with the client using the XML requests and responses. So initially we decided, since we are sending the XML as response, lets store it in XML so that conversion from database to XML format time is saved. 3.Client will request for XML based on some filter conditions. So will have to use XQUERY. 4.Maximum of 100 entries will be there in an XML, atleast as of now.
Now I would like to hear some advice on whether I should use XML or mongodb. My Concerns : 1. How good is it to store temporary data in mongodb and delete/take backup once done with session 2. Conversion from mongodb json format to XML. 3. Handling the changes in the schema design.
Cant use any other DB than mongodb. As some persistent operation or still done on mongodb. Thanks in advance.
© Stack Overflow or respective owner