使用 Appcelerator 持久存储大约 300 个值的更合理方法是什么?

What is the more reasonable way to persistently store around 300 values with Appcelerator?

使用 Axway Appcelerator,可以将数据值持久存储为数组和对象列表 Ti.App.Properties: https://wiki.appcelerator.org/display/guides2/Lightweight+Persistence+with+the+Properties+API

或者,也可以将这些值存储在数据库中。

我需要使用结构 word-translation-property1-property2 存储大约 200-300 objects/values。不需要复杂的查询,只需纯文本。

我应该使用数据库还是可以将它们存储为轻量级应用程序属性?

您可以使用属性。这可能是最简单的。

我已经完成了一些基本测试(基于普通选项卡的应用程序)并认为 AppProperties 确实很好。

我存储的 AppProperties 列表有大约 200 个条目,结构如下:

{original: "die Hauptstadt", translation: "la capitale", type: "noun", gcase: "0", color: "cccccc", gender: "F"}

应用程序启动时间在模拟器 (iOS) 中似乎没有太大差异,约为 30 毫秒。

应用程序的大小也大得可以忽略不计(在 Android 的应用程序设置中,包含 200 个元素的属性列表显示多了大约 40 KB 的数据)。