plist or sqlite(plist 或 sqlite)
问题描述
我必须在 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.
这篇关于plist 或 sqlite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:plist 或 sqlite
基础教程推荐
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
- 是否可以执行按位分组功能? 2021-01-01
- 无法解决整理冲突 2021-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
