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

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

WBOY
WBOYOriginal
2016-06-13 12:35:21710browse

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

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