Home > Backend Development > PHP Tutorial > 请教要查询大量的数据到前端显示,应该如何做比较好

请教要查询大量的数据到前端显示,应该如何做比较好

WBOY
Release: 2016-06-13 12:50:32
Original
1168 people have browsed it

请问要查询大量的数据到前端显示,应该怎么做比较好?
比如mysql有100W条数据,然后用php查询出来,到前端显示,怎样才能提高速度?


------解决方案--------------------
缓存技术,看你数据更新的频率,如果更新比较快建议用memcache缓存,如果不怎么更新还是用文件缓存吧。
------解决方案--------------------
分页啊。做好表索引。如果数据更新慢,则做好缓存措施。
Related labels:
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