ThinkPHP的分页是如何实现的

WBOY
Release: 2016-06-23 14:22:06
Original
841 people have browsed it

ThinkPHP 分页

是用offset的方式吗,那样大数据表的时候不是影响应能吗?

回复讨论(解决方案)

分页原理都差不多,先查出总条数,根据条数来决定分页,如果是大数据的话不建议在sql中使用排序,这样就有影响。其他的话不影响性能。

只要合理优化sql查询,分页倒是没有什么的。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template