摘要: 菜刀: sql一刀剁了 整个模块丢弃了 调用次数少多了 排序不在需要了 大表砍成小表了 排重操作消失了 插入障碍小多了 迁移事情不做了 手术刀: 大表等于小表了 大表切成小表了 索引变身小表了 删除动作不做了 清表角度表换了 提交次数缩减了 迁移越来越快了 sql语... 阅读全文
posted @ 2015-04-21 22:49 alexblog 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 主要的表连接类型: 嵌套循环 哈希连接 排序合并 各种连接类型的差异: 访问次数: 嵌套循环:驱动表查询n条记录,被驱动表访问n次。 SQL> create table t1(id number not null,n number,contents varchar2(4000)); Table cr... 阅读全文
posted @ 2015-04-21 12:25 alexblog 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 位图索引: 统计条数奋勇夺冠: SQL> drop table t purge; Table dropped. SQL> create table t as select * from dba_objects; Table created. SQL> insert into t select * from t; 2314432 rows created. ... 阅读全文
posted @ 2015-04-21 00:08 alexblog 阅读(155) 评论(0) 推荐(0) 编辑