Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Eight meets Realm

2,514 views

Published on

Realm meetup #6 にて、EightでのRealm導入の試みについて発表したときの資料です。

Published in: Software
  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Eight meets Realm

  1. 1. Eight meets Realm 2015/08/25 Realm Meetup Sansan株式会社 坂本和大
  2. 2. 自己紹介 https://github.com/kazu0620 坂本 和大( @kazu0620 ) Sansan株式会社 Eight事業部所属 過去に個人で開発したアプリ - ヒミツのアルバム( 35万DL! ) - にゃんこタウン( 15万DL! )
  3. 3. Agenda Eight について Realmの良さ RealmのTipsなど Realmに今後期待すること
  4. 4. Copyright © Sansan, Inc. All rights reserved.
  5. 5. Copyright © Sansan, Inc. All rights reserved. v6.2.8 Previous Version v6.3 Current Version
  6. 6. Copyright © Sansan, Inc. All rights reserved. 名刺をデジタル管理 リコメンドでつながる アプリ同士の名刺交換 検索してつながる
  7. 7. Copyright © Sansan, Inc. All rights reserved.
  8. 8. なぜRealmなのか 従来の実装ではFMDBで実装されていた 2015年 4月 一部の機能でRealmを試験的に導入  メリット / デメリットあるが、 主要機能でも導入すべきと判断
  9. 9. 良さ はやい
  10. 10. 良さ シンプルなIF = 学習コストが低い オブジェクトを定義して 永続化!
  11. 11. 良さ Realm Browser
  12. 12. 良さ サポートが超手厚い。 slackのrealmチームで質問を投げると、 めっちゃ丁寧に教えてくれる。 realmを利用するならjoinしておくべき。
  13. 13. というわけで
  14. 14. Realmの本格導入 7月にリリースしたフィード機能で利用 サーバーから取得したフィード情報のキャッ シュにRealmを利用している
  15. 15. Tips / ハマった点など
  16. 16. リレーション RLMObject(1 to 1) RLMObject(1 to many) かんたん! が、カスケーディングはまだ未対応。紐づくオブジェ クトは自分で手動で削除する必要が有ることに注意。
  17. 17. デフォルト値 / PKの設定 PK Realm管理下に置かない プロパティも設定できる デフォルト値 現時点ではまだNullがサポートされていないことに注意!
  18. 18. スレッド間でのオブジェクトの扱い スレッドをまたいでオブジェクトを利用することはできない PKを渡して、スレッド内で再度objectForPrimaryKeyする
  19. 19. RLMResultは最新の状態が自動で反映される(便利 更新の通知を受け取ることも可能 通知など
  20. 20. RLMResultは更新されてもnowは固定の値のまま (あたりまえ) 時間でselectするクエリの場合はRLMResultsを取得し直そう
  21. 21. PromiseKit(便利) addOrUpdate(便利)
  22. 22. マイグレーション スキーマの変更があった場合、マイグレーション処理をせずにRealmにアクセスしよ うとするとExceptionが吐かれる。 新規のモデル追加の場合はマイグレーションしなくとも問題ない。既存のモデルのス キーマが変わった場合にはマイグレーション必須。 Eightではまだ既存のモデルのスキーマ変更を行ったことはないのでマイグレーション 対応はまだ行っていない。 が、マイグレーション処理がなくともスキーマversionを上げておくのはアリ
  23. 23. Unit Test debugとは切り分けたデータを使いたい。 テスト毎にデータをtruncateしたい。
  24. 24. Unit Test API通信 -> データ生成のテストにはOHHTTPStubsを利用 Fixture通りのデータが正しく格納されていることと、データを正しく引けてる ことをことをテストする。
  25. 25. Realmに今後期待すること Nullサポート モデル毎のデータ変更通知 ※いずれも絶賛対応中とのこと!
  26. 26. Copyright © Sansan, Inc. All rights reserved. 0 Sansanは一緒に新しい価値を作っていく 仲間をさがしています。 Ruby, Ruby on Rails (Webアプリケーション) C#,ASP.NET MVC (Webアプリケーション) iOS / Android アプリ -  個人向け名刺管理アプリ「Eight」 -  名刺データ化分散処理システム -  法人向け名刺管理サービス「Sansan」 -  法人向け名刺管理サービス 「Sansan」 -  個人向け名刺管理アプリ「Eight」 エンジニア募集中 Sansan 採用 検索 recruit@sansan.com まで お気軽にご連絡ください。 興味のある方は

×