当前位置:网站首页>GBASE 8s 如何估算索引使用多少空间
GBASE 8s 如何估算索引使用多少空间
2022-07-29 21:18:00 【八珍豆腐】
用于计算索引使用的字节的公式:(列大小之和 + 9) * 行 * 1.25
例如:
create table person ( person_id serial, fname char(25), lname char(25), ssn char(char9) );
create index ix1 on person(person_id);
create index ix2 on person(ssn);
create index ix3 on (fname, lname);估算结果如下:
ix1: (4 +9) * 1000000 * 1.25 ----> 16,250,000 bytes or 16,250 Kb
ix2: (9+9) * 1000000 * 1.25 -----> 22,500,000 bytes or 22,500 Kb
ix3: (25+25+9) * 1000000 * 1.25 ---> 73,750,000 bytes or 73,750 Kb
边栏推荐
- 7 行代码搞崩溃 B 站,原因令人唏嘘!
- 【ORM框架:Sequelize的查询】
- Add a logo to the upper left corner of the picture, add time and address to the lower left corner, and wrap the line when the address reaches the specified length
- "Introduction to nlp + actual combat: Chapter 7: Dataset loading in pytorch and the use of its own datasets"
- 关于 golang 错误处理的一些优化想法
- 容器网络硬核技术内幕 (24) 知微知彰,知柔知刚 (上)
- linux使用脚本安装redis
- 官宣!苏州吴江开发区上线电子劳动合同平台
- 刘畊宏男孩女孩看过来!运动数据分析挖掘!(附全套代码和数据集)
- 无文件落地免杀的初尝试思考(上)
猜你喜欢
随机推荐
使用脚本安装mysql
刘畊宏男孩女孩看过来!运动数据分析挖掘!(附全套代码和数据集)
MySQL Data Query - Union Query
网站ping端口的操作方法和命令介绍
一文理解分布式开发中的服务治理
The implementation of the flood control project and safety construction project in the flood storage and detention areas in Luluze and Ningjinbo was launched
[Database] mysql date format conversion
华为畅享50 Pro评测:HarmonyOS加持 更流畅更安全
亚马逊登录参数metadata1,encryptedPwd逆向分析
Cobaltstrike and BurpSuite desktop shortcut configuration
微信小程序如何开通支付功能?
Numpy array processing (2)
南华早报 | 助力亚洲最具公信力报章实现AD域自动化管理
【Nacos】nacos1.x 单机、内置数据库模式修改密码
【593. 有效的正方形】
结合布林线理解现货白银走势图的方法
MySQL Data Query - Simple Query
leetcode122. Best Time to Buy and Sell Stock II
Dry goods!Cooperative Balance in Federated Learning
378. The Kth Smallest Element in an Ordered Matrix
![[ACTF2020 Freshman Competition]Exec 1](/img/1e/a3c19d514207e6965d09c66b86e519.png)








