Home > Backend Development > PHP Tutorial > Wordpress中,PHP调用跟Mysq调用l哪个更快些

Wordpress中,PHP调用跟Mysq调用l哪个更快些

WBOY
Release: 2016-06-13 12:21:40
Original
1044 people have browsed it

Wordpress中,PHP调用和Mysq调用l哪个更快些
Wordpress
想根据分类ID来调用相应的图片
PHP的话,想写成case判断语句来调用
或者写入mysql数值,然后写个语句调用
大约有500+个分类
请问哪个快一些,谢谢
------解决思路----------------------
可维护性自然是 MySQL 占优
查询速度取决于你的文件组织

如果你写 500 个 case,那么你就该下课了
------解决思路----------------------
只写入mysql数值,那取出来不是一样要判断吗?

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