about consistent read gets

本文详细解释了数据库中consistent read(CR读)的概念及其相关指标,包括session logical reads、cleanouts and rollbacks-consistent read gets等,并澄清了一些常见误解。

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

关于consistent read(简称CR),有网友在问这个问题,虽然看似很容易理解,然而我想不见得大家都明白,在我
查询官方文档的过程中,我也发现我以前的认识是错误的或者说理解不完整,下面是涉及到的几个概念,来自官
方文档:

session logical reads :
 
   The sum of "db block gets" plus "consistent gets". This includes logical reads of database 
   blocks from either the buffer cache or process private memory.
 
cleanouts and rollbacks - consistent read gets:
 
   Number of consistent gets that require both block rollbacks and block cleanouts.
 
cleanouts only - consistent read gets:
 
   Number of consistent gets that require only block cleanouts, no rollbacks.
 
consistent gets:
 
   Number of times a consistent read was requested for a block.
 
 
consistent changes:
 
   Number of times a user process has applied rollback entries to perform a consistent read on the block
 
CR blocks created:
 
   Number of CURRENT blocks cloned to create CR (consistent read) blocks. The most common reason for cloning 
   is that the buffer is held in a incompatible mode.
 
db block gets:
 
  Number of times a CURRENT block was requested

关于CR read相关的几个我都列出来了,上面信息都来自官方文档,描述是非常准确的。

前面我之所以把逻辑读也列出来了,其实是因为很多朋友有一个错误的认识,例如下面这个执行计划:

全文请参考原链接地址: about consistent read gets

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值