Storing XML in a Database for Flexible Content

倖福魔咒の 提交于 2019-12-24 17:06:48

问题


I'm working on building a system that aggregates content from several different RSS feeds and API's, stores it, and then outputs it with unique formatting based on the source of the content. My current plan is to create an XML structure for each unique type, storing each record using that structure in a MySQL database, and then retrieving it and parsing it appropriately for display.

Are there any significant issues to using this approach, or are there better ways to achieve the same goal?


回答1:


XML in a database is about as flexible as an iron girder. It becomes practically unqueryable without database support, and even then it isn't particularly fast. Break it down, normalize it, and store it as conventionally as possible.



来源:https://stackoverflow.com/questions/2260303/storing-xml-in-a-database-for-flexible-content

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!