Pagination: Server Side or Client Side?

前端 未结 9 2034
生来不讨喜
生来不讨喜 2020-11-29 18:39

What is it best to handle pagination? Server side or doing it dynamically using javascript?

I\'m working on a project which is heavy on the ajax and pulling in data

9条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 19:19

    I prefer server side pagination. However, when implementing it, you need to make sure that you're optimizing your SQL properly. For instance, I believe in MySQL, if you use the LIMIT option it doesn't use the index so you need to rewrite your sql to use the index properly.

    G-Man

提交回复
热议问题