How to reduce the size of an sqlite3 database for iphone?

后端 未结 11 1706
没有蜡笔的小新
没有蜡笔的小新 2020-12-31 20:06

edit: many thanks for all the answers. Here are the results after applying the optimisations so far:

  • Switching to sorting the characters and run l
11条回答
  •  半阙折子戏
    2020-12-31 20:57

    Your best bet is to use compression, which unfortunately SQLite does not support natively at this point. Luckily, someone took the time to develop a compression extension for it which could be what you need.

    Otherwise I'd recommend storing your data mostly in compressed format and uncompressing on the fly.

提交回复
热议问题