本章介绍天翼云关系型数据库的不同实例规格支持情况。 通用增强型和通用增强II型实例性能强劲稳定,提供更高的网络性能,满足不同场景需求。 通用增强型实例是新推出的一系列性能更高、计算能力更稳定的实例规格,搭载英特尔® 至强® 可扩展处理器,配套高性能网络,综合性能及稳定性全面提升,满足对业务稳定性及计算性能要求较高的企业级应用诉求。 通用增强II型实例搭载第二代英特尔® 至强® 可扩展处理器,多项技术优化,计算性能强劲稳定,配套25GE智能高速网卡,提供超高网络带宽和PPS收发包能力。 性能规格 规格 vCPU(个) 内存(GB) 支持的数据库引擎 :::: 通用增强型 2 4 MySQL PostgreSQL 通用增强型 2 8 MySQL PostgreSQL 通用增强型 2 16 MySQL PostgreSQL 通用增强型 4 8 MySQL PostgreSQL Microsoft SQL Server 通用增强型 4 16 MySQL PostgreSQL Microsoft SQL Server 通用增强型 4 32 MySQL PostgreSQL Microsoft SQL Server 通用增强型 8 16 MySQL 通用增强型 8 32 MySQL PostgreSQL Microsoft SQL Server 通用增强型 8 64 MySQL PostgreSQL Microsoft SQL Server 通用增强型 16 64 MySQL Microsoft SQL Server 通用增强II型 2 4 MySQL PostgreSQL 通用增强II型 2 8 MySQL PostgreSQL Microsoft SQL Server 通用增强II型 2 16 MySQL PostgreSQL Microsoft SQL Server 通用增强II型 4 8 MySQL PostgreSQL Microsoft SQL Server 通用增强II型 4 16 MySQL PostgreSQL Microsoft SQL Server 通用增强II型 4 32 MySQL PostgreSQL Microsoft SQL Server 通用增强II型 8 16 MySQL PostgreSQL 通用增强II型 8 32 MySQL PostgreSQL Microsoft SQL Server 通用增强II型 8 64 MySQL PostgreSQL Microsoft SQL Server 通用增强II型 16 32 MySQL PostgreSQL 通用增强II型 16 64 MySQL PostgreSQL Microsoft SQL Server 通用增强II型 16 128 MySQL PostgreSQL Microsoft SQL Server 通用增强II型 32 64 MySQL PostgreSQL 通用增强II型 32 128 MySQL PostgreSQL 通用增强II型 64 128 MySQL PostgreSQL 通用增强II型 64 256 MySQL PostgreSQL 通用增强II型 64 512 MySQL PostgreSQL 数据库实例规格请以实际环境为准。
本页介绍天翼云TeleDB数据库的Index设计规范。 1. TeleDB提供的index类型:Btree,Hash,GiST (Generalized Search Tree),SPGiST (spacepartitioned GiST),GIN (Generalized Inverted Index),BRIN (Block Range Index),目前不建议使用Hash,通常情况下使用Btree。 2. 建议create或drop index时,加CONCURRENTLY参数,达到与写入数据并发的效果。 3. 建议对于频繁update, delete的包含于index定义中的column的table, 用create index CONCURRENTLY,drop index CONCURRENTLY的方式进行维护其对应index。 4. 建议用unique index代替unique constraints,便于后续维护。 5. 建议对where中带多个字段and条件的高频query,参考数据分布情况,建多个字段的联合index。 6. 建议对固定条件的(一般有特定业务含义)且选择时数据占比低的query,建议带 where的Partial Indexes。 select from test where status1 and col?; 其中status1为固定的条件 create index on test (col) where status1; 7. 建议对经常使用表达式作为查询条件的query,可以使用表达式或函数索引加速 query。 select from test where exp(xxx); create index on test ( exp(xxx) ); 8. 建议不要建过多index,一般不要超过6个,核心table(产品,订单)可适当增加 index个数。
本页介绍天翼云TeleDB数据库的Index设计规范。 1. TeleDB提供的index类型:Btree,Hash,GiST (Generalized Search Tree),SPGiST (spacepartitioned GiST),GIN (Generalized Inverted Index),BRIN (Block Range Index),目前不建议使用Hash,通常情况下使用Btree。 2. 建议create或drop index时,加CONCURRENTLY参数,达到与写入数据并发的效果。 3. 建议对于频繁update, delete的包含于index定义中的column的table, 用create index CONCURRENTLY,drop index CONCURRENTLY的方式进行维护其对应index。 4. 建议用unique index代替unique constraints,便于后续维护。 5. 建议对where中带多个字段and条件的高频query,参考数据分布情况,建多个字段的联合index。 6. 建议对固定条件的(一般有特定业务含义)且选择时数据占比低的query,建议带 where的Partial Indexes。 plaintext select from test where status1 and col?; 其中status1为固定的条件 create index on test (col) where status1; 7. 建议对经常使用表达式作为查询条件的query,可以使用表达式或函数索引加速 query。 plaintext select from test where exp(xxx); create index on test ( exp(xxx) ); 8. 建议不要建过多index,一般不要超过6个,核心table(产品,订单)可适当增加 index个数。