php 处置每天几十万 近百万的 update 语句

WBOY
Release: 2016-06-13 13:00:57
Original
848 people have browsed it

php 处理每天几十万 近百万的 update 语句
php 处理每天几十万 近百万的 insert, update 语句 insert占少量 update 占绝大部分操作 

大体上是 ,有一个页面 接受id和值 然后进行update操作 操作很简单 就是量大

个人用墨迹数据测试了一下 速度灰常之慢

请问谁有什么好的方法吗 (MySQL)
------解决方案--------------------
确认条件语句涉及的字段上有索引
如果不要求很强的实时性可以
使用LOW_PRIORITY关键词,则UPDATE的执行被延迟了,直到没有其它的客户端从表中读取为止。

------解决方案--------------------
win2003…………
你的mysql版本是不是有点老了…………
另外mysql在linux下的效率比在win的效率是数量级的提升……
------解决方案--------------------
这个和数据库管理系统有关,与PHP或ASP关系不大。asp如果使用mysql应该和php会差不多。
关于优化可以参考mysql的手册
http://dev.mysql.com/doc/refman/5.1/zh/optimization.html#update-speed


------解决方案--------------------
我试了10000条数据。才1秒  我们用appsrv

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!