注册并分享邀请链接,可获得视频播放与邀请奖励。

Paul Hudson
@twostraws
Learning and sharing at Hacking with Swift. Creator of Kickstart, Unwrap, Ignite, and two small children.
加入 July 2009
272 正在关注    123.1K 粉丝
If you only need a count, don't fetch all the objects just to call .count on the result. fetchCount() does the work entirely in the database and is dramatically faster.