摘要: 分区清理: 分区表的性能: 普通表: 把一个表分成了多个段,提高了性能。 避免SQL中的函数调用: 但是通过autotrace 比较观察发现两种写法性能上存在巨大差异 第一种: 第二种: 表连接的性能一定比函数调用的高。 减少SQL中的函数调用: 性能对比: 集合写法提高性能。 只取你需要的列,访问 阅读全文
posted @ 2019-09-18 20:27 石shi 阅读(384) 评论(0) 推荐(0) 编辑
摘要: count(*)和Count(列) select count(*) from t; select count(object_id) from t; 逻辑读和Cost是一样的。、 建索引: create index idx_object_id on t(object_id); select count 阅读全文
posted @ 2019-09-18 13:00 石shi 阅读(214) 评论(0) 推荐(0) 编辑