1

Which datatype are use in realm database(i.e. String,int etc.)? What is the size of that DataType?

(i.e. in mySQL varchar max length is 65,535.)

Sagar Zala
  • 4,854
  • 9
  • 34
  • 62
Arbaz.in
  • 1,478
  • 2
  • 19
  • 41
  • See https://realm.io/docs/java/latest/#field-types and also https://realm.io/docs/java/latest/#limitations-general – EpicPandaForce Aug 24 '18 at 10:23
  • @EpicPandaForce thanks , now i am clear with the dataTypes of realm but still confused with dataType size. is this size depends on **realmObject** which we extends our model file? – Arbaz.in Aug 24 '18 at 10:33

1 Answers1

6

Realm supports boolean, byte, short, int, long, float, double, String, Date and byte[] field types.

Also specific types of RealmModel, and RealmList<T> where T is a supported field type of Realm.

Size limitation of String , byte[] is 16MB.

EpicPandaForce
  • 79,669
  • 27
  • 256
  • 428
Suhas Ts
  • 317
  • 1
  • 11
  • Thanks @Suhan Ts , i m understand with data types which you explain but what about the size of dataType? – Arbaz.in Aug 24 '18 at 10:34
  • All the datatypes occupy their primitive sizes in realm but **String** and **byte[]** have a limited size of 16 mb. – Suhas Ts Aug 24 '18 at 10:44