Download presentation
Presentation is loading. Please wait.
Published byDella Francis Modified over 9 years ago
1
1 CONFIDENTIAL ORM for Android MIKHAIL IVANOU AUGUST 7, 2015
2
2 CONFIDENTIAL Caching in Android ORM Testing Results Links
3
3 CONFIDENTIAL ORM for Android Introduction Problem o Slow/no internet o Speed o Amount of data Solution?
4
4 CONFIDENTIAL ORM for Android ORM Custom (SQLite based) Realm.io SugarORM ORMLite GreenDAO XCore
5
5 CONFIDENTIAL How to test Feed:
6
6 CONFIDENTIAL How to test Model:
7
7 CONFIDENTIAL How to test 1.Parse and store 400 news 2.Read all news 3.Read news for particular author 4.Read news with images 5.Issues in implementation Test device: Nexus 5
8
8 CONFIDENTIAL TEST results CustomRealmSugarOrmORMLiteGreenDAOXCore Save603/673/676 485/403/471 3140/2964 856/717/826422/416/410849/777/775 Read all940/864/92530/27/293021/2367 540/580/543 27/30/28Not tested Read filtered 176/133/17930/28/29Not tested 148/150/140 14/21/22Not tested Read with images 841/845/81531/34/32Not tested 557/574/596 68/57/60Not tested Cache size < 1Mb
9
9 CONFIDENTIAL Results Leaders: GreenDAO Realm.io +- CustomNeed to control everything, huge code GreenDAOAutoGenereted models, easy to startBe careful on model updates Realm.ioWorks both iOS and Android, easy models Still beta, threading and models limitations ORMLiteEasy to implementLast release at 2013 year XCoreNot ORM, but complex framework to load, cache, show content. Can automatically add fields to DB No documentation SugarORMEasy to implementCan’t work with one-to-many relations
10
10 CONFIDENTIAL Links Test project - https://github.com/mikhail-ivanou/testORMhttps://github.com/mikhail-ivanou/testORM GreenDAO - http://greendao-orm.com/http://greendao-orm.com/ SugarORM - https://github.com/satyan/sugarhttps://github.com/satyan/sugar ORMLite - http://ormlite.com/http://ormlite.com/ XCore - https://github.com/IstiN/android_xcorehttps://github.com/IstiN/android_xcore Realm.io - https://realm.io/https://realm.io/
11
11 CONFIDENTIAL Questions
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.