php mysql 千万数据库 如何优化

WBOY
Release: 2016-06-13 13:25:26
Original
850 people have browsed it

php mysql 千万数据库 怎么优化?
自启动以来的内部查询: 3,820  
ø 每小时: 33,706
ø 每分钟: 562
ø 每秒: 9 
说明 查询数量 ø 每小时 % 
set option 1,638 14.5 k 42.88% 
change db 1,637 14.4 k 42.85% 
select 378 3,335.3 9.90% 
insert 164 1,447.1 4.29% 
show status 1 8.8 0.03% 
show master status 1 8.8 0.03% 
show slave status 1 8.8 0.03% 

这是 phpmyadmin 看到的。

需要怎么才能以最快的速度 查询 读取呢?

------解决方案--------------------
大数据量的,一般不用mysql,即使速度优化上去了,需要惊人代价的CPU,RAM资源。
------解决方案--------------------
多表储存

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!