title: Speeding up Datatables load time on client side
body: <p>I am using datatablejs on client side for displaying the database to client. I download the database from server initially using backbone indexeddb adapter and store it in indexedDB so as to support offline access to data. However, datatables take approx around 5 minutes to render 20,000 entries. This is my JS code:</p>
  
  <pre><code>render_data: function(entity_collection) {
          //create table body in memory
          tbody = $('&lt;tbody&gt;');
          tbody.html('');
  
          //iterate over the collection, fill row template with each object 
          //and append the row to table
          entity_collection.each(function(model) {
              tbody.append(this.row_template(model.toJSON()));
          }, this);
          //put table body in DOM
          this.$('#list_table')
              .append(tbody);
          //initialize datatable lib on the table    
          this.$('#list_table')
              .dataTable();
          $("#loaderimg")
              .hide();
          $("#sort-helptext").show();
  },
  </code></pre>
  
  <p>Table headers: </p>
  
  <pre><code>&lt;script type="text/template" id="person_table_template"&gt; 
      &lt;tr&gt; 
          &lt;th&gt;Id&lt;/th&gt; 
          &lt;th&gt;Name&lt;/th&gt; 
          &lt;th&gt;Father Name&lt;/th&gt; 
          &lt;th&gt;Village&lt;/th&gt; 
          &lt;th&gt;Group&lt;/th&gt; 
          &lt;th&gt;&lt;/th&gt; 
      &lt;/tr&gt; 
  &lt;/script&gt;
  </code></pre>
  
  <p>JSON which is converted to html: </p>
  
  <pre><code>Object {
      age: 45, 
      father_name: "Jiyan Sah ", 
      gender: "F", 
      group: Object, 
      id: 10000000155392, 
      label: "Gangajali Devi (Sahila Rampur,Jiyan Sah )", 
      online_id: 10000000155392, 
      person_name: "Gangajali Devi ", 
      phone_no: "", 
      resource_uri: "/coco/api/v1/person/10000000155392/", 
      village: Object
  }
  </code></pre>
  
  <p>Can anybody suggest about how to increase the performance of datatable?</p>