plist 或 sqlite

2021-12-20 00:00:00 sorting search sqlite plist

我必须在 iPhone 上存储大量数据,然后根据需要对其进行排序和搜索.任何人都可以向我建议我应该使用哪个 SQLite 或 plist?

I have to store a huge amount of data on IPhone then sort and search it as per requirement. Can anyone suggest to me which of SQLite or plist should I use?

我正在考虑使用 SQLite.plist 和 SQLite 哪个在搜索和排序中的处理时间更短?

I was thinking of using SQLite. Which of plist and SQLite takes less processing time in searching and sorting?

如果有人有参考指南,请告诉我.

If some one has some reference guide then let me know.

问候

推荐答案

Plist 和 SQLite 有不同的用例.

Plist and SQLite have different use cases.

PList 是一种文件格式,用于存储少量结构数据(小于几百 KB),通常是字典.PList 本身没有排序功能,尽管可以轻松编写代码对其进行排序.

PList is a file format used to store a small amount of structural data (less than a few hundred kilobytes), typically a dictionary. PList doesn't have sorting capabilities in and of itself, although code can easily be written to sort it.

SQLite 是一个成熟的数据库.文件大小(在 iphone 上)基本上是无限的.内置排序功能.可以进行查询和关系表设计.性能应该与您可能想出的任何排序算法一样好.

SQLite is a full-fledged database. File sizes (on an iphone) are essentially unlimited. Sorting capabilities are built in. Querying and relational table designs are possible. Performance should be as good as any sorting algorithm you might come up with.

相关文章