CoreData FetchBatchSize使用讲解
来源:互联网 发布:单片机开发板如何使用 编辑:程序博客网 时间:2024/05/16 12:59
[request setFetchBatchSize:500];//从数据库里每次加载500条数据来筛选数据
[request setFetchOffset:sizeCount];//读取数据库的游标偏移量,从游标开始读取数据
sizeCount +=10;
[request setFetchLimit:10];//每次要取多少条数据,10就是每次从数据库读取10条数据
老外讲解:
If you have many records in your table (entity) and your fetch is set up to retrieve many records from this table, faulting is a method by which your app can preserve memory. Rather than retrieving all of these records and loading them into memory all at the same time, your fetchBatchSize will limit the number of records retrieved to that limit, and will fault the remaining records -- they will only be fetched when they are needed. If you set the fetchBatchSize this faulting will be handled for you automatically.
Hope this clarifies things a bit.
- CoreData FetchBatchSize使用讲解
- CoreData最新讲解
- CoreData使用
- CoreData 使用
- 使用CoreData
- CoreData使用
- CoreData使用
- CoreData使用
- CoreData 使用
- CoreData 使用
- Coredata使用
- CoreData 欢迎来到CoreData 使用。
- CoreData NSPredicate在CoreData中的使用
- CoreData使用须知
- CoreData的使用
- CoreData简单使用
- coreData 使用分析
- CoreData - Mogenerator 的使用
- 如何使用 Windows Phone 的控件倾斜效果
- C语言中的宏 #define _INTSIZEOF(n) 与 可变参数函数
- 4步 搭建svn服务器(配置多仓库)
- offer3
- Jquery操作select,radio,checkBox,获取选中项的值和文本,根据值和文本设置选中项
- CoreData FetchBatchSize使用讲解
- Effective C++ 学记之15 在资源管理类中提供对原始资源的访问
- 指针与数组--指针与数组的定义与声明
- 算法篇 五
- 调试利器 :PHP debug_backtrace
- 使用CRgn::CombineRgn判断两个区域是否有共同的覆盖区域
- 如何使用 Comparable ,Comparator 接口
- C++模板实例化 模板显示实例化有什么好处?
- 一周总结