{"id":10488,"date":"2015-01-14T13:03:08","date_gmt":"2015-01-14T18:03:08","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=10488"},"modified":"2015-01-14T13:05:32","modified_gmt":"2015-01-14T18:05:32","slug":"switching-from-core-data-to-realm","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2015\/01\/14\/switching-from-core-data-to-realm\/","title":{"rendered":"Switching From Core Data to Realm"},"content":{"rendered":"<p><a href=\"http:\/\/realm.io\/news\/how-icomics-switched-to-realm-in-one-evening\/\">Tim Oliver<\/a> (<a href=\"https:\/\/twitter.com\/TimOliverAU\/status\/555164526476152832\">tweet<\/a>):<\/p>\n<blockquote cite=\"http:\/\/realm.io\/news\/how-icomics-switched-to-realm-in-one-evening\/\">\n<p><a href=\"https:\/\/twitter.com\/timoliverau\">Tim Oliver<\/a>, creator of the <a href=\"http:\/\/icomics.co\">iComics app<\/a>, gave a talk featuring Realm in his project at the Perth iOS Meetup. His talk covered gave a quick background of his transition to and experiences using Realm in place of Core Data, a switch he made in just one evening.<\/p>\n<p>[&#8230;]<\/p>\n<p>When I was working on iComics, I&rsquo;d have problems when a background thread would import a comic, tell the main thread the comic imported, then send an object with entirely empty fields. When I tested installing a new version of the app over an older version, I found that Core Data&rsquo;s auto-migration was corrupting half the database and making the app very unstable. A manual Core Data migration would have required a ridiculous amount of code, and I decided to switch to Realm.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Tim Oliver (tweet): Tim Oliver, creator of the iComics app, gave a talk featuring Realm in his project at the Perth iOS Meetup. His talk covered gave a quick background of his transition to and experiences using Realm in place of Core Data, a switch he made in just one evening. [&#8230;] When I was [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[131,109,1104,31,26,30,71,942],"class_list":["post-10488","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-bug","tag-coredata","tag-icomics","tag-ios","tag-iosapp","tag-mac","tag-programming","tag-realm"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=10488"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10488\/revisions"}],"predecessor-version":[{"id":10489,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10488\/revisions\/10489"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=10488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=10488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=10488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}