Chinaunix首页 | 论坛 | 博客
  • 博客访问: 517090
  • 博文数量: 137
  • 博客积分: 3170
  • 博客等级: 中校
  • 技术积分: 1455
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-17 11:47
文章分类

全部博文(137)

文章存档

2015年(2)

2013年(1)

2012年(6)

2011年(5)

2010年(62)

2009年(61)

我的朋友

分类: Mysql/postgreSQL

2010-05-15 15:39:12

1.system bottlenecks系统可能的瓶颈
1.1.Disk seeks磁盘搜索时间,优化查询的一个办法是将数据放到不同的磁盘。
1.2 Disk reading and writing
1.3 CPU cycles
1.4 Memory bandwidth
2.Myisam可能的问题是,它是锁表的,The biggest problem with this storage engine occurs when you have a steady stream of mixed updates and slow selects on a single table
3.Mysql的crash-me可以测量mysql和其他数据库的兼容性。The programs can be found in the sql-bench directory of MySQL source distributions。
4. crash-me的用法,主要用于数据库跨平台。

./crash-me --host='192.168.20.123' --user='root' --password='key'

5.run-all-tests用法

perl --socket='/tmp/my3306.sock'

6. Super Smack可以挑战你的系统极限,帮助我们在high load情况下测试问题。

7.sql语句的优化:
7.1  权限问题,permission问题,必然会影响查询效率。
通过BENCHMARK()函数可以测试简单表达式的执行时间。
SELECT BENCHMARK(1000000,1+1);



阅读(525) | 评论(0) | 转发(0) |
0

上一篇:i18n l10n

下一篇:perl DBI DBD 安装

给主人留下些什么吧!~~