Raw resources versus SQLite database

前端 未结 3 501
醉酒成梦
醉酒成梦 2020-12-02 00:43

I\'m creating an application that will use a lot of data which is, for all intents and purposes, static. I had assumed it\'d make most sense to use a SQLite database to hand

3条回答
  •  一个人的身影
    2020-12-02 01:41

    In fact, SQLite seems to be nonsense if the data is static. However, if what you are going to manipulate is a lot of data you should use it:

    • It will be easier to:
      • Retrieve data
      • Filter data
      • Sort data
    • Using XML files will cause some performance problems because of the way in which SAX or DOM parses XML.
    • It will be easier for you to update that set of data in the future (imagine that you want to add more data in the next release)

提交回复
热议问题