当前位置:网站首页>GBASE 8s 通过light scan优化查询性能
GBASE 8s 通过light scan优化查询性能
2022-07-29 21:18:00 【八珍豆腐】
一些表的顺序扫描可以使用light scan来读取数据。light scan通过利用会话内存直接从磁盘读取来绕过缓冲池。
与使用缓冲池进行顺序扫描和跳过大型表扫描相比,light scan可以提供诸多性能优势。这些优势包括:
- 读取许多数据页时绕过缓冲池的开销
- 防止在为单个查询读取多个连续页时将经常访问的页强制退出缓冲池。
在以下条件下进行light scan:
- 优化程序选择对表进行顺序扫描或skip-scan。
- 表中的数据量超过 1 MB。
- 查询满足以下锁定条件之一:
- 隔离级别为脏读(或数据库没有事务日志记录)。
- 该表在整个表上至少有一个共享锁,并且隔离级别不是游标稳定性。
light scan的配置设置
如果 SET ENVIRONMENT 语句的BATCHEDREAD_TABLE配置参数或IFX_BATCHEDREAD_TABLE会话环境选项设置为 0,那么light scan不用于访问具有可变长度行的表,或行长度大于包含该表的数据库空间的页大小的表。可变长度行包括具有可变长度列的表,如 VARCHAR、LVARCHAR 或 NVARCHAR,以及压缩的表。
边栏推荐
- 获取七牛云地址文件保存到本地
- 三品牌下半年将带来多款新品,东风日产将迎来“产品大潮”
- 南信大提出TIPCB,一个简单但有效的用于基于文本的人员搜索的基于部分的卷积baseline
- [Database] mysql date format conversion
- 网络通信编程基础,BIO,NIO
- 打破原则!MongoDB 引入 SQL?
- 1. Promise usage in JS, 2. The concept and usage of closures, 3. The difference between the four methods and areas of object creation, 4. How to declare a class
- Analysis of Crypto in Pi 2
- 惠普服务器硬盘指示灯不亮或显示蓝色
- 容器网络硬核技术内幕 (23) 权利,知识与责任
猜你喜欢
GET_ENTITYSET Method Implementation Guide for SAP ABAP OData Service Data Provider Class
4. Implementation Guide for GET_ENTITYSET Method of SAP ABAP OData Service Data Provider Class
Writing Elegant Kotlin Code: Talk About What I Think "Kotlinic"
初识网络的简单概念
How to implement your personal knowledge base?
解决报错 WARNING: IPv4 forwarding is disabled. Networking will not work.
【Verilog 设计】Verilog 实现偶数、奇数分频和任意小数分频
MySQL Data Query - Simple Query
【ORM框架:Sequelize的查询】
Panorama Tutorial丨How to shoot sunrise and sunset scenes in VR panoramic shooting?
随机推荐
MySQL数据查询 - 联合查询
打破原则!MongoDB 引入 SQL?
7 行代码搞崩溃 B 站,原因令人唏嘘!
Minimal jvm source code analysis
Come in now!!!Take you to know the basic data types of C language
[Database] mysql date format conversion
IDEA 快捷键
The Ministry of Human Resources and Social Security announced that "database operation administrator" has become a new occupation, and OceanBase participated in the formulation of occupational standar
数组和List互转
WeChat Mini Program 31 Subcontracting Mechanism
LeetCode 593 Valid Squares [Math] HERODING's Road to LeetCode
Cooler Navigation helps you shop easily in shopping malls without confusion
Fully automated machine learning modeling!The effect hangs the primary alchemist!
结合布林线理解现货白银走势图的方法
Add obsolete flag to pdf
1. Promise usage in JS, 2. The concept and usage of closures, 3. The difference between the four methods and areas of object creation, 4. How to declare a class
24-hour London gold chart analysis
MySQL Data Query - Simple Query
微信小程序 31 分包机制
全系都更换带T四缸,安全、舒适一个不落