title: Bulk insert in Realm
body: <p>I have decided to use Realm for my project. I've gone through the documentation and cannot understand how to get all my phone contacts imported into my Realm database.
  Has anyone done this kind of project before? Please help.</p>
  
  <p>I have used Sugar ORM which has a bulk insert option. Does Realm have the same or is there an alternative to that?</p>
  
  <p>Here's what I've done till now:</p>
  
  <pre><code>package com.advisualinc.switchchat.Realm_DB;
  
  import io.realm.RealmObject;
  import io.realm.annotations.PrimaryKey;
  
  /**
   * Created by Veeresh on 10/19/2015.
   */
  public class R_ContactDB extends RealmObject {
      private String name;
      @PrimaryKey
      private String phone;
      private boolean matchedWithRecent;
      private int status;
  
  
      public R_ContactDB(String name, String phone, boolean matchedWithRecent, int   status)
      {
          this.name = name;
          this.phone = phone;
          this.matchedWithRecent = matchedWithRecent;
          this.status = status;
      }
  
      public R_ContactDB()
      {
  
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public String getPhone() {
          return phone;
      }
  
      public void setPhone(String phone) {
          this.phone = phone;
      }
  
      public boolean isMatchedWithRecent() {
          return matchedWithRecent;
      }
  
      public void setMatchedWithRecent(boolean matchedWithRecent) {
          this.matchedWithRecent = matchedWithRecent;
      }
  
      public int getStatus() {
          return status;
      }
  
      public void setStatus(int status) {
          this.status = status;
      }
  }
  </code></pre>