Home > Backend Development > PHP Tutorial > 如何样判断数组操作和数据库操作的开销呢

如何样判断数组操作和数据库操作的开销呢

WBOY
Release: 2016-06-13 12:35:21
Original
833 people have browsed it

怎么样判断数组操作和数据库操作的开销呢?
假如不是特别复杂的操作,应该多次查询数据库获取数据,还是一次查询数据库,然后再用数组拼接操作比较好呢?应该怎么判断哪种操作开销比较大呢?谢谢

php 数据库 数据 数组
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