How to implement a paginator that doesn't call count(*)

前端 未结 2 1898
再見小時候
再見小時候 2021-02-13 20:32

I am working on a django website that has a MySQL innodb backend. We have hundreds of thousands of records in several of our tables and this is causing some site stability/perfo

2条回答
  •  半阙折子戏
    2021-02-13 21:33

    You could also check out django-endless-pagination.endless_pagination.paginator.LazyPaginator is not bad, but you might need to add a few tweaks.

提交回复
热议问题