TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A taste of CoreData – A graph framework

76 点作者 yageek超过 7 年前

4 条评论

mpweiher超过 7 年前
Since about 20003, I have made a bit of a career of removing CoreData and its predecessor EOF from applications.<p>Every time it has been a huge success in terms of simplicity, performance and reliability.<p>Replacing EOF happened in a feed-processing application[1]. We just processed everything in memory and persisted the incoming feed, which we wanted to do anyway for auditing. In that instance it wasn&#x27;t so much a planned removal, but rather that we never came around to implementing the DB component.<p>Next up was a desktop application, Livescribe Desktop. It was using an atomic store, so there wasn&#x27;t really any point to CoreData. Chucking it meant removing a lot of code and crash-sites.<p>For Wunderlist 3, we rewrote the storage layer to simply use a bunch of JSON files (our CTO used to shock people at conferences with that little nugget), and the &quot;In-Process REST&quot; ideas from [1]. So our persistence solution was essential [NSJSONSerialization dataWith...]. The day after we launched, I was shocked at the number of crash reports, but my colleagues informed me that they had 10x the amount the last time. With millions of users, you get into a lot of edge cases. Oh, ours was also the fastest of the clients.<p>Oh, I also gave a talk at UIKonf &#x27;17 about making a public transport data (sample) application 1000x faster by moving from CoreData&#x2F;sqlite to a custom data representation.[2]<p>[1] <a href="https:&#x2F;&#x2F;link.springer.com&#x2F;chapter&#x2F;10.1007&#x2F;978-1-4614-9299-3_11" rel="nofollow">https:&#x2F;&#x2F;link.springer.com&#x2F;chapter&#x2F;10.1007&#x2F;978-1-4614-9299-3_...</a><p>[2] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=kHG_zw75SjE&amp;feature=youtu.be" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=kHG_zw75SjE&amp;feature=youtu.be</a>
评论 #16419266 未加载
_sdegutis超过 7 年前
Kudos to OP for braving through CoreData. I’ve been using it on and off since it was released, and it’s an awfully cumbersome and error-prone framework. And as Apple adds more complexity to iOS, CoreData gets exponentially worse. I’m 200% convinced today that it’s far better to just store your users data in a more traditional cloud database instead. <i>Especially</i> with syncing, which Apple made ridiculously, unnecessarily hard to get right.
评论 #16418586 未加载
评论 #16418207 未加载
评论 #16418134 未加载
评论 #16418310 未加载
RantyDave超过 7 年前
NSPredicate. Back in the day I fought through the CoreData only kinda SQL thing and eventually got a result but... These days I&#x27;d just shove it on SQLite and get 10x the performance for 10x less effort. God DAMN that was hard work.<p><a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;content&#x2F;documentation&#x2F;Cocoa&#x2F;Conceptual&#x2F;Predicates&#x2F;AdditionalChapters&#x2F;Introduction.html#&#x2F;&#x2F;apple_ref&#x2F;doc&#x2F;uid&#x2F;TP40001789" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;content&#x2F;documentation&#x2F;Co...</a>
评论 #16420066 未加载
Unknoob超过 7 年前
I&#x27;ve been using CoreData in a big project but the multithreading has been crashing my app a lot. Can anyone recommend me some alternatives for a simple, lightweight, 100% local data storage for iOS?
评论 #16419896 未加载
评论 #16420902 未加载
评论 #16452138 未加载