在MS SQL 中,铁人(SQL 2005性能调优)建议我们一般的表最好都要有聚集索引,就是ORACLE 的IOT表,
在ORACLE 中,TOM教导我们一般的表99%最好都是堆表(heap table).
(摘自Expert_Oracle_Database_Architecture_Oracle_Database_Programming_9i_10g_and_11g_Techniques_and_Solutions
--PAGE 324)这是为什么呢? 希望各位牛人解惑.
个人倾向于 是表最好都是聚集索引表(IOT)表,更加合适.当然这也不是绝对.难道ORACLE OLTP的应用场景都是只查单条记录?都不需要顺序读取?
在ORACLE 中,TOM教导我们一般的表99%最好都是堆表(heap table).
(摘自Expert_Oracle_Database_Architecture_Oracle_Database_Programming_9i_10g_and_11g_Techniques_and_Solutions
--PAGE 324)这是为什么呢? 希望各位牛人解惑.
个人倾向于 是表最好都是聚集索引表(IOT)表,更加合适.当然这也不是绝对.难道ORACLE OLTP的应用场景都是只查单条记录?都不需要顺序读取?
解决方案 »
- 在表中的id name grade habby四个字段改成1 mirro 60 足球//怎么写?
- 要向Oracle数据库中实时更新对象(表、过程、函数、触发器等)应该怎么做?
- 如何去除相同时间段
- select into的使用问题
- 请问:这两种check约束有什么不同,为什么我产生的错误结果是一样的?谢谢!
- 数据库定期down掉,是什么原因?
- 关于数据库打开出现的错误----在线等
- ASSERT(!m_bTransactionPending)失败问题,急问!
- 请问各位dx:提示“maximum of 20 enabled roles exceeded“,该如何解决?谢谢。(无内容)
- 谁有oracle 9i认证书籍
- 请教一个问题: 如何统计某个用户下所建表的数量
- Oracle语句的解释
对于我的考量来说,读到索引即读到数据,而堆表还要有个指向,这样不是相对还慢一拍了吗?
因为更新主键是数据库中比较忌讳的操作,一般都不对主键进行更改的.
对应的MS SQL 就是 clustered index table
不过ORACLE 的这个index 好像代表的是主键,是不?
Use the index_org_table_clause to create an index-organized table. Oracle Database maintains the table rows,
both primary key column values and nonkey column values, in an index built on the primary key.
Index-organized tables are therefore best suited for primary key-based access and manipulation. An index-organized table is an alternative to:
A noncluster table indexed on the primary key by using the CREATE INDEX statement
A cluster table stored in an indexed cluster that has been created using the CREATE CLUSTER statement
that maps the primary key for the table to the cluster keyYou must specify a primary key for an index-organized table, because the primary key uniquely identifies a row.
The primary key cannot be DEFERRABLE.
Use the primary key instead of the rowid for directly accessing index-organized rows.If an index-organized table is partitioned and contains LOB columns, then you should specify the index_org_table_clause first,
then the LOB_storage_clause, and then the appropriate table_partitioning_clauses.You cannot use the TO_LOB function to convert a LONG column to a LOB column in the subquery of a CREATE TABLE ... AS SELECT statement
if you are creating an index-organized table. Instead, create the index-organized table without the LONG column,
and then use the TO_LOB function in an INSERT ... AS SELECT statement.
因为iot实际是把非键字段也放到了index里存储,所以对iot的查询类似对index的查询.默认是主键的升序