way(client side or server side) to go for pagination /sortable columns?

前端 未结 4 1077
梦如初夏
梦如初夏 2021-02-02 01:34

I have 3000 records in an employee table which I have fetched from my database with a single query. I can show 20 records per page. So there will be 150 pages for with each page

4条回答
  •  北海茫月
    2021-02-02 02:15

    I know this doesn't directly answer the client vs server side pagination, but I would recommend using DataTables.net to both display and paginate your data. It provides a very nice display, allows for sorting and pagination, built in search function, and a lot more. The first time I used it was for the first web project I worked on, and I, as a complete noobie, was able to get it to work. The forums also provide very good information/help, and the creator will answer your questions. DataTables can be used both client-side and server-side, and can support thousands of rows. As for speed, I only had a few hundred rows, but used the client-side processing and never noticed a delay.

提交回复
热议问题