How would you minimize or compress Core Data sqlite file size?

后端 未结 3 1398
说谎
说谎 2021-02-15 13:05

I have a 215MB csv file which I have parsed and stored in core data wrapped in my own custom objects. The problem is my core data sqlite file is around 260MB. The csv file conta

3条回答
  •  天涯浪人
    2021-02-15 13:37

    You might be able to perform some database normalization.

    Look for anything that might be redundant or the same values being stored in multiple rows. You will probably need to restructure your database so these duplicate values (if any) are stored in separate tables and then referenced from their original row by means of id's.

提交回复
热议问题