I have been told to create forum functionality in our website..I have done it using C#,SQL server,But my Boss insists he needs the datas to be stored in some physical file (xml or text).will using xml file for storing and retriving data cause perfomance issues.. Which is best suited for large amount of data sql or xml?
Share
When you store data in a database, then it is stored in a physical file. You just get a robust bit of software that can read the data, and perform optimised searches, sorts, updates and take care of issues such as multiple processes trying to write to the file at the same time while being able to rollback transactions and so on.
You could store that data in an XML file and then build your own software which takes care of all of the above … but that would be a huge wheel to try to reinvent.
XML makes for a decent transport format for hierarchal data, but is a poor storage format for data you are actively working on. Use it for import / export, not storage.