You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Skip total records aims to improve dataTables response time by skipping the total records count query and settings its value equals to the filtered total records.
I just tested and you can Re-Produce src/Datatables.php:243
Thanks for the great lib, one issue i think many of us having is processing large Mysql Data with joins in innoDB engine.
can you add something like this:
https://yajrabox.com/docs/laravel-datatables/master/skip-total-records
Skip total records aims to improve dataTables response time by skipping the total records count query and settings its value equals to the filtered total records.
I just tested and you can Re-Produce src/Datatables.php:243
`
$this->response['recordsTotal'] = $this->db->count($this->builder->filtered);
///REMOVE THIS BLOCK
if($this->builder->query->sql === $this->builder->filtered->sql) {
$this->response['recordsFiltered'] = $this->response['recordsTotal'];
} else {
$this->response['recordsFiltered'] = $this->db->count($this->builder->filtered);
}
////END REMOVE
`
The text was updated successfully, but these errors were encountered: