DatatablesBundle icon indicating copy to clipboard operation
DatatablesBundle copied to clipboard

How to change Server-Side searching to Client-Side?

Open vertisan opened this issue 7 years ago • 3 comments

Hi,

In my case searching by Server-Side is too slow, better alternative can be searching by Client-Side so how can I change this option?

vertisan avatar Dec 20 '18 20:12 vertisan

Wondering the same 🤔

DylanDelobel avatar Sep 12 '19 04:09 DylanDelobel

Caching is like good sex; it hides the real problem

Why is server-side slow? I've got tables with 100k rows and it's very fast. Consider using Symfony's profiler to see why queries are slow. How many rows/columns do you have?

Please be aware that you can't search client side if you load the data with ajax.

stephanvierkant avatar Sep 12 '19 06:09 stephanvierkant

I'm looking to put the datatables client-side after the first Ajax because he already got all the rows

I would stop making ajax request for every ordering/sorting since all the data is shown, but looking through all the issues that look like removed and a WIP features now

DylanDelobel avatar Sep 12 '19 16:09 DylanDelobel