Top Banner
REALM New multi-platform database for apps .
19

Realm.oi new database for mobile apps

Jul 17, 2015

Download

Software

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Realm.oi new database for mobile apps

REALMNew multi-platform database for apps.

Page 2: Realm.oi new database for mobile apps

WHY?

Page 3: Realm.oi new database for mobile apps

…because!!Realm is not built on SQLite

Multi-platform (OS X, iOS, Java)

Objective-C and Swift support

A much simpler API

Easy thread-safety

F-F-Fast!! Realm offers extraordinary performance compared to SQLite and other persistence solutions.

File size 20% less

Page 4: Realm.oi new database for mobile apps

Property types

BOOL, bool, int, NSInteger, long, long long, float, double, CGFloat, NSString, NSDate, and NSData.

RLMObject

RLMArray<Object>

Realm ignores Objective-C property attributes

Page 5: Realm.oi new database for mobile apps

Текст

Models

Page 6: Realm.oi new database for mobile apps

Текст

Writes

Page 7: Realm.oi new database for mobile apps

QueriesThe comparison operators ==, <=, <, >=, >, !=, and BETWEEN are supported for int, long, long long, float, double, and NSDate property types.

Realm supports the following compound operators: “AND”, “OR”, and “NOT”. Such as name BEGINSWITH ‘J’ AND age >= 32

ANY comparisons, such as ANY student.age < 21

Case insensitive comparisons for strings, such as name CONTAINS[c] ‘Ja’. Note that only characters “A-Z” and “a-z” will be ignored for case.

The containment operand IN such as name IN {‘Lisa’, ‘Spike’, ‘Hachi’}

Page 8: Realm.oi new database for mobile apps

Notifications

Page 9: Realm.oi new database for mobile apps

Текст

Performing a Migration

Page 10: Realm.oi new database for mobile apps
Page 11: Realm.oi new database for mobile apps

Текст

Encryption

Page 12: Realm.oi new database for mobile apps

Object mapping

Page 13: Realm.oi new database for mobile apps

1.160994

7.495840

Tests

Page 14: Realm.oi new database for mobile apps

0.442663

1.913599

Tests

Page 15: Realm.oi new database for mobile apps

Realm browser

Page 16: Realm.oi new database for mobile apps

General LimitsClass names must be between 0 and 63 bytes in length

Property names must be between 0 and 63 bytes in length

NSData properties cannot hold data exceeding 16MB in size.

Any single Realm file cannot be larger than the amount of memory your application would be allowed

Page 17: Realm.oi new database for mobile apps

Other limits

Realm in CocoaPods does not work for Swift projects

KVO is not supported

Fine-grained notifications are not yet supported

Realm Object Setters & Getters cannot be overriden

Realm files cannot be accessed by concurrent processes

Page 18: Realm.oi new database for mobile apps

Realm http://realm.io/

MagicalRecord https://github.com/magicalpanda/MagicalRecord

Predicates Programming Guide from Apple

Page 19: Realm.oi new database for mobile apps

Thank You!