Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Realm を正しく使うには
Search
numa08
September 29, 2015
Technology
5
1.5k
Realm を正しく使うには
Android で Realm を使う際の気をつける点とかを共有@ #realm_jp
numa08
September 29, 2015
Tweet
Share
More Decks by numa08
See All by numa08
What/Why/How MVVM on iOS
numa08
3
680
facilio
numa08
0
120
Kotlin でテストを書く
numa08
0
350
Android Testing Bootcamp 4
numa08
0
470
チームの進捗をちゃんと可視化したい話
numa08
1
940
Realmを正しく使うには
numa08
2
400
新入女子社員のコードを直す簡単なお仕事 #新宿Scala座 第6回
numa08
1
220
新宿Scala座
numa08
0
1k
DroigPing
numa08
0
120
Other Decks in Technology
See All in Technology
The Rise of LLMOps
asei
7
1.4k
100 名超が参加した日経グループ横断の競技型 AWS 学習イベント「Nikkei Group AWS GameDay」の紹介/mediajaws202411
nikkei_engineer_recruiting
1
170
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.1k
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
430
【Pycon mini 東海 2024】Google Colaboratoryで試すVLM
kazuhitotakahashi
2
500
iOSチームとAndroidチームでブランチ運用が違ったので整理してます
sansantech
PRO
0
130
Adopting Jetpack Compose in Your Existing Project - GDG DevFest Bangkok 2024
akexorcist
0
110
誰も全体を知らない ~ ロールの垣根を超えて引き上げる開発生産性 / Boosting Development Productivity Across Roles
kakehashi
1
220
[CV勉強会@関東 ECCV2024 読み会] オンラインマッピング x トラッキング MapTracker: Tracking with Strided Memory Fusion for Consistent Vector HD Mapping (Chen+, ECCV24)
abemii
0
220
AGIについてChatGPTに聞いてみた
blueb
0
130
Engineer Career Talk
lycorp_recruit_jp
0
150
個人でもIAM Identity Centerを使おう!(アクセス管理編)
ryder472
3
200
Featured
See All Featured
Bash Introduction
62gerente
608
210k
Happy Clients
brianwarren
98
6.7k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
410
Building a Scalable Design System with Sketch
lauravandoore
459
33k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
RailsConf 2023
tenderlove
29
900
Practical Orchestrator
shlominoach
186
10k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
Transcript
3FBMNΛ ਖ਼͘͠͏ʹ "OESPJEฤ !OVNB SFBMN@KQ
!OVNB IUUQOVNBIBUFCMPKQ
DPWFMMJOF --$ GFBUIFSܰշͳUXJUUFSΫϥΠΞϯτ
3FBMNΛਖ਼͘͠͏ʹ 3FBMNߴͳ%#.4Ͱ͋Δ 3FBMNଞͷ%#.4ͱൺֱͯ͠ѹతʹߴͰ͋Δɻ ͔͠͠ɺଞͷ%#.4ʹແ੍͍ҙ͕͋Δɻ εϨουؒ௨৴ɺίϯϙʔωϯτؒ௨৴ɺςετFUDʜ "OESPJEͰ3FBMNΛͬͨͷհ UXJUUFSΫϥΠΞϯτGFBUIFSͰ3FBMNΛͬͨɻ πΠʔτͷಡΈࠐΈɺදࣔؔ࿈ʹ͍ͭͯϋϚͬͨΛհɻ
ΞδΣϯμ ઃܭ w ࠓͷઃܭ w ੲͷઃܭ w ੲͷઃܭͷࣦഊ ςετ
w ςετͷ5JQT
ࠓͷઃܭ
ੲͷઃܭ
πΠʔτͷཧΦϒδΣΫτ ࠓ ੲ class Tweet extends RealmObject { String
text; Date createAt; String userName; public Tweet(){} public Tweet(String text, Date createAt, String userName) { this.text = text; this.createAt = createAt; this.userName = userName; } } class Tweet implements Content { String text; Date createAt; String userName; // RealmTweet extends RealmObject public Tweet(RealmTweet obj){ this.text = obj.getText(); this.createAt = obj.getCreateAt(); this.userName = obj.getUserName(); } }
ੲͷઃܭ ޓੑ͕ཉ͔ͬͨ͠ 3FBMNҎ֎ͷ%#.403.ͷ࠾༻ݕ౼͍ͯͨ͠ɻ ͍ͭͰΓ͑ΒΕΔΑ͏ʹɺޓੑΛҙ͍ࣝͯͨ͠ɻ
ੲͷઃܭͷμϝͳ ϝϞϦ͍͗͢ ͔ͳΓେྔͷΦϒδΣΫτΛϝϞϦ্ʹల։͢ΔͷͰɺ ͕ٻΊΒΕͨɻ 3FBMNͷϝϦοτΛ׆͔ͤͯͳ͍ ಠࣗΦϒδΣΫτͷల։ʹΑͬͯɺಈ࡞͕͘ͳͬͨɻ Ԇϩʔυ($Λར༻͠ͳ͍ͷͰɺແҙຯͳϝϞϦফඅʹܨ͕ͬͨɻ ޓੑΛࣺͯͯ3FBMNΛ͏ํࣜʹํస
εϨουؒ௨৴ ੲ ࠓ ಡΈࠐΈ όοΫάϥϯυͰ࣮ߦ ॻ͖ࠐΈ όοΫάϥϯυͰ࣮ߦ εϨουؒ௨৴ ಠࣗΦϒδΣΫτʹల։
ಡΈࠐΈ 6*εϨουͰ࣮ߦ ॻ͖ࠐΈ όοΫάϥϯυͰ࣮ߦ εϨουؒ௨৴ ࣝผࢠɺΫΤϦΛΓͱΓɻ ࣍ͷεϨουͰΫΤϦΛ࣮ߦɻ
ίϯϙʔωϯτؒ௨৴ ੲ ࠓ ίϯϙʔωϯτؒ௨৴ ಠࣗͷ1BSDFMBCMFͳΦϒδΣΫτʹ ల։ ίϯϙʔωϯτؒ௨৴ ࣝผࢠɺΫΤϦΛΓͱΓɻ ࣍ͷίϯϙʔωϯτͰΫΤϦ࣮ߦɻ
ςετͷ ઃܭ w +7.Ͱςετ͕Ͱ͖ͳ͍ w ϑΝΠϧআ࣌ͷҙࣄ߲ w 6*εϨουςετͷҙࣄ߲ εϨουؒ௨৴ɺίϯϙʔωϯτؒ௨৴ͷ੍ݶ͋ͬͯɺςετ࣮ߦҙ͕ඞཁ
ͱͳΔɻ
ςετͷ +7.্Ͱςετ͕Ͱ͖ͳ͍ +7.্ͷςετͰωΟςΟϒϥΠϒϥϦ͕ಡΈࠐΊͳ͍ͷͰɺ3FBMNΠϯελϯ εΞΫηεͰ͖ͳ͍ɻ *OTUSVNFOUBUJPO5FTUͰ͋Δඞཁ͕͋Δɻ ิɹ 3FBMN0CKFDUͷαϒΫϥεΛΠϯελϯεԽ͢Δͷɺ+7.্ͰՄೳɻ ίϯετϥΫλͷςετɺ3FBMNͷಡΈॻ͖ͷແ͍ςετͳΒେৎɻ
ςετͷ ϑΝΠϧআ࣌ͷҙࣄ߲ 3FBMNͷ%#ϑΝΠϧશͯͷίωΫγϣϯ͕DMPTF͞Ε͍ͯͳ͍ͱআͰ͖ͣɺ ྫ֎͕ඈͿɻ !"GUFSͰআΛ͢Δ߹ʹɺ࣮֬ʹDMPTF͕ݺΕΔΑ͏ʹ͢Δඞཁ͕͋Δɻ ςετʹࣦഊͯ͠DMPTF͠Εͯ!"GUFS͕ݺΕΔͱྫ֎͕ݟ͘ͳΔɻ w ςετϝιουͰUSZpOBMMZ USZXJUISFTPVSDFT
ΛͬͯDMPTF͢Δ w !"GUFSͰDMPTF͔ͯ͠ΒআΛ͢Δ
ςετͷ !6*5ISFBE5FTUͷҙ !6*5ISFBE5FTU!#FGPSF !"GUFSͱҧ͏εϨουͰ࣮ߦ͞ΕΔɻ ͦͷͨΊɺ3FBMNΠϯελϯεͳͲɺςετϝιουͰ༻ҙɺ আ͢Δඞཁ͕͋Δɻ