Deleting duplicate indexes to improve performance and space
来源:互联网 发布:软件著作权是什么 编辑:程序博客网 时间:2024/05/16 17:55
Deleting duplicate indexes to improve performance and space.
If 2 indexes ( INDX1 INDX2 )are created for a table and the number of columns in Index INDX1 is less or equal to the number of column in index INDX2 and index INDX1 has the same columns in the same order as leading columns of index INDX2, then if index INDX1 is UNIQUE and not being used for any foreign key, then INDX1 can be dropped as it exists in INDX2.
example
CREATE TABLE EMP (
emp_id NUMBER(8) NOT NULL,
last_name VARCHAR2(20) NOT NULL,
first_name VARCHAR2(20) NOT NULL );
CREATE INDEX INDX1 ON EMP ( last_name );
CREATE INDEX INDX2 ON EMP ( last_name, first_name );
In the above exampke INDX1 can be dropped.
If 2 indexes ( INDX1 INDX2 )are created for a table and the number of columns in Index INDX1 is less or equal to the number of column in index INDX2 and index INDX1 has the same columns in the same order as leading columns of index INDX2, then if index INDX1 is UNIQUE and not being used for any foreign key, then INDX1 can be dropped as it exists in INDX2.
example
CREATE TABLE EMP (
emp_id NUMBER(8) NOT NULL,
last_name VARCHAR2(20) NOT NULL,
first_name VARCHAR2(20) NOT NULL );
CREATE INDEX INDX1 ON EMP ( last_name );
CREATE INDEX INDX2 ON EMP ( last_name, first_name );
In the above exampke INDX1 can be dropped.
- Deleting duplicate indexes to improve performance and space
- Using Covering Indexes to Improve Query Performance
- 25+ ASP Tips to Improve Performance and Style
- How to improve ElementHost performance
- How to Configure RMAN I/O Block Size to Improve Backup and Recovery Performance [ID 107213.1]
- How to Configure RMAN I/O Block Size to Improve Backup and Recovery Performance [ID 107213.1]
- How to Configure RMAN I/O Block Size to Improve Backup and Recovery Performance [ID 107213.1]
- http://dongxicheng.org/mapreduce/how-to-improve-hadoop-stablility-and-performance/
- Compile with ARM Thumb2 to Reduce Memory Footprint and Improve Performance
- GC settings to improve Eclipse performance
- Best practices to improve performance in JDBC
- Best practices to improve performance in JDBC
- How to Improve Query Performance - A Checklist
- How to improve web services performance
- Best practices to improve performance in JDBC
- pat 1055 how to improve the performance
- Five Invaluable Techniques to Improve Regex Performance
- how to improve deep learning performance
- KONDO KHR 2HV 機器人,你的真正玩伴
- Draw2D教程(六)
- 获取IP地址函数(本地、域名转换)
- 彩云追月
- 颠覆性的游戏模式︰VirtuSphere
- Deleting duplicate indexes to improve performance and space
- Mobile Campus客户端源代码
- 穿透Socks5 代理的UDP编程
- FireFox shortcut key.
- 数据结构(C语言)例子连载(0)=====开贴
- 今天刚考完系分
- c语言之父Dennis M Ritchie访谈
- 关于大整数类加减法算法的一些思考
- Unix时代的开创者Ken Thompson(1943~)