一个经常存取的表,一定要把它的数据和索引分布在不同的磁盘上吗?

本文探讨了一种常见的I/O分布优化误解,即频繁使用的表与其索引分离存储的方法并不总是有效。在事务处理过程中,索引与表数据的读取通常是顺序进行的,因此将它们放在同一磁盘上可以避免争用问题,提升数据库性能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

One popular approach to manual I/O distribution suggests separating a frequently used table from its index. This is not correct. During the course of a transaction, the index is read first, and then the table is read. Because these I/Os occur sequentially, the table and index can be stored on the same disk without contention. It is not sufficient to separate a datafile simply because the datafile contains indexes or table data. The decision to segregate a file should be made only when the I/O rate for that file affects database performance.

-- 引用自 <>

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/136097/viewspace-1007462/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/136097/viewspace-1007462/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值