随笔分类 -  DB2优化

摘要:一直在做performance,但直到今天才完成了这个第一天应该完成的图,到底Index scan和Rscan的分界点在哪里? 如下图所示,很简单的一个查询,只是查询int,分别强制走索引和表扫描,可以看到,大约在4096条记录的时候Index Scan和Rscan可以打平,之后Index scan会永远比Table scan跑的快。 比较奇怪的是128和256的时候,Index ... 阅读全文
posted @ 2014-09-23 19:22 db2zos 阅读(294) 评论(0) 推荐(0)
摘要:一般来说通过TRACE的report来分析DDF的性能问题的话,基本对DBA都是噩梦一样。因为所有的Thread都是通过DDF一个类型的Thread,所以不管你怎么分类,看Accounting report都很难分析性能问题。不过DB2从V9开始JDBC支持通过一系列的set函数设置client端信息,这样就可以将Client的不同SQLs设置为不同的名字来实现性能监控和分析。设置函数举例如下: db2conn.setDB2ClientAccountingInformation(qname+"accin"); db2conn.setDB2ClientUser(qna... 阅读全文
posted @ 2014-03-24 23:34 db2zos 阅读(396) 评论(0) 推荐(0)
摘要:If you need to limit the query(package,plan) running time, but the JCL/JOB TIME parameters doesn't work in most case. Here is some step by step of how to make it work using the resouce limit facility.... 阅读全文
posted @ 2014-03-18 15:04 db2zos 阅读(380) 评论(0) 推荐(0)