arraysize和consistent get的关系

 首先看一下两个词的定义

arraysize
Arraysize specifies how many rows SQL*Plus will fetch in a call. The number n can be between 1 and 5000.
arraysize定义了一次返回到客户端的行数,当扫描了arraysize 行后,停止扫描,返回数据,然后继续扫描。所以假如一个数据块超过Arraysize设置的值就要被扫描多次.

consistent gets
Number of times a consistent read was requested for a block.

在使用sqlplus查看执行计划的时候,经常看consistent gets这个值,如下:

表CS_PERFORMANCE_CURRENT有15472条数据,3072个数据块,因此consistent gets =15472/15+472=1503.46666666667.当arraysize设置成400时,consistent gets =15472/400+472=510.68,当arraysize设置成5000时,consistent gets =15472/5000+472=475.0944。
Warning (from warnings module): File "C:/Users/ASUS/AppData/Local/Programs/Python/Python313/DC-run/8.27程序包/耦合运算.py", line 12 for _ in range(ds.dims['time']) # 确保广播兼容 FutureWarning: The return type of `Dataset.dims` will be changed to return a set of dimension names in future, in order to be more consistent with `DataArray.dims`. To access a mapping from dimension names to lengths, please use `Dataset.sizes`. Warning (from warnings module): File "C:/Users/ASUS/AppData/Local/Programs/Python/Python313/DC-run/8.27程序包/耦合运算.py", line 12 for _ in range(ds.dims['time']) # 确保广播兼容 FutureWarning: The return type of `Dataset.dims` will be changed to return a set of dimension names in future, in order to be more consistent with `DataArray.dims`. To access a mapping from dimension names to lengths, please use `Dataset.sizes`. Warning (from warnings module): File "C:/Users/ASUS/AppData/Local/Programs/Python/Python313/DC-run/8.27程序包/耦合运算.py", line 12 for _ in range(ds.dims['time']) # 确保广播兼容 FutureWarning: The return type of `Dataset.dims` will be changed to return a set of dimension names in future, in order to be more consistent with `DataArray.dims`. To access a mapping from dimension names to lengths, please use `Dataset.sizes`. Traceback (most recent call last): File "C:/Users/ASUS/AppData/Local/Programs/Python/Python313/DC-run/8.27程序包/耦合运算.py", line 27, in <module> npp_common = ds_npp.sel(time=np.isin(get_month_str(ds_npp).values, common_months)) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python313\Lib\site-packages\xarray\core\dataset.py", line 2924, in sel result = self.isel(indexers=query_results.dim_indexers, drop=drop) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python313\Lib\site-packages\xarray\core\dataset.py", line 2768, in isel indexes, index_variables = isel_indexes(self.xindexes, indexers) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python313\Lib\site-packages\xarray\core\indexes.py", line 2123, in isel_indexes return _apply_indexes_fast(indexes, indexers, "isel") File "C:\Users\ASUS\AppData\Local\Programs\Python\Python313\Lib\site-packages\xarray\core\indexes.py", line 2077, in _apply_indexes_fast new_index = getattr(index, func)(index_args) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python313\Lib\site-packages\xarray\core\indexes.py", line 820, in isel return self._replace(self.index[indxr]) # type: ignore[index] File "C:\Users\ASUS\AppData\Local\Programs\Python\Python313\Lib\site-packages\pandas\core\indexes\base.py", line 5428, in __getitem__ result = getitem(key) IndexError: boolean index did not match indexed array along axis 0; size of axis is 648 but size of corresponding boolean axis is 419904
最新发布
09-15
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值