Issues with pagination and sorting

后端 未结 4 1925
小蘑菇
小蘑菇 2021-02-14 03:44

I\'m looking into situations in database-oriented web applications when one should rely on client side sorting of tables over sorting on the server side. One particular situatio

4条回答
  •  一个人的身影
    2021-02-14 04:15

    Have the db sort what gets delivered to the particular page on screen. It will almost always be faster, be cached and ease such a load on the browser.

    If you like, have the client side allow further sub-sorting via javascript, etc if the data is detailed enough and could benefit from it. You may want to store what sub-sorting features are selected so they are remembered between pages.

提交回复
热议问题