当前位置:网站首页>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
边栏推荐
- MySQL数据查询 - 简单查询
- 大陆泽、宁晋泊蓄滞洪区防洪工程与安全建设项目启动实施
- 【593. Valid Square】
- 无文件落地免杀的初尝试思考(上)
- Qualcomm WLAN framework learning (31) -- Power save
- 获取七牛云地址文件保存到本地
- Break the rules!MongoDB introduces SQL?
- VSCode 插件大全
- The demand for VR live broadcast marketing is increasing, and the data module is paving the way for us
- Xshell 7 prompts "To continue using this program, you must apply the latest update or use a new version"
猜你喜欢

一 JS中Promise用法、二闭包的概念与用法、三对象创建的四种方式与区区别、四 如何声明一个类

Cobaltstrike和BurpSuite桌面快捷配置

第二好PyTorch新手课程;论文写作指南;使用µGo语言开发迷你编译器;超高效使用Transformer的扩展库;前沿论文 | ShowMeAI资讯日报

24小时伦敦金走势图分析

C语言操作符详解(1)

applet preview pdf

In 2022, you still can't "low code"?Data science can also play with Low-Code!

ALBERT: A Lite BERT for Self-supervised Learning of Language Representations

5 V booster charge 8.4 V chip

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
随机推荐
网安学习-内网渗透2
品牌广告投放平台的中台化应用与实践
关于云计算的海量数据存储模型[通俗易懂]
给pdf添加已作废标识
qt中qstring合并字符串
基于PaddleSpeech搭建个人语音听写服务
结合布林线理解现货白银走势图的方法
Jenkins 如何玩转接口自动化测试?
7 行代码搞崩溃 B 站,原因令人唏嘘!
AI全流程开发难题破解之钥
OneNote 教程,如何在 OneNote 中做笔记?
378. The Kth Smallest Element in an Ordered Matrix
GET_ENTITYSET Method Implementation Guide for SAP ABAP OData Service Data Provider Class
关于 golang 错误处理的一些优化想法
24小时伦敦金走势图分析
什么是数据安全性?
网络通信编程基础,BIO,NIO
Huawei Enjoy 50 Pro evaluation: HarmonyOS blessing is smoother and safer
940. Different subsequences II
bright day