Best way to store XML data in a MySQL database, with some specific requirements

后端 未结 4 878
孤独总比滥情好
孤独总比滥情好 2021-02-13 15:44

I am receiving XML data from a service. The test data I am receiving back has about 300 XML nodes, clearly far too many to create individual rows for in a MySQL database.

<
4条回答
  •  孤街浪徒
    2021-02-13 16:18

    The best way is to not store XML in the DB, but I have history with that particular issue.

    Just store it as TEXT. 500 MB is nothing for MySql, especially with TEXT datatypes, since those aren't stored in the row buffer.

提交回复
热议问题