注:
Schema:在数据库系统中,数据库管理系统(DBMS)用自身所支持的语言来描述的结构。在关系数据库中,schema定义了表,每个表的字段,以及字段与表之间的关系。在文中,Schema将不翻译为中文。
前言
优化一个设计不当或者错误使用索引的Schema,可以数量级的提高性能。如果需要高性能,你必须对于将要执行的具体语句设计Schema和索引。你也应该对于不同种类的语句进行性能的评估,因为修改成一个语句或者schema的一部分可能会引发其他的一些连带效应。优化往往涉及到了折中。比如,添加索引会增加查询速度,但会降低更新速度。同样的,非范式的schema能提高一些语句的执行速度,但是可能在其他的速度就会降低。添加计数和汇总表是个好的优化语句的方式,但是他们增加了维护的难度。
一些时候你可能已经超出了开发人员的角色了以及你会有一些有疑问的需求。那些并不是数据库系统专家的人常常写一些业务需求并不会考虑性能。如果你说明一些小功能会需要两倍于当前服务器的配置,那么他们可能会决定取消这个功能。
Schema和索引的优化不但需要注意细节,也要有个大局观。你需要知道整个系统,这样才能理解每一部分对另外一些的影响。这一章节首先讨论数据类型,之后涵盖了索引策略以及数据库范式。最后一些关于存储引擎的信息。
在阅读完语句优化那张之后,你可能需要重新回顾下这一章。许多这一章讨论的主题,尤其是索引,都不是独立的。你必须熟悉语句优化以及服务器的调整,才能正确的使用索引。
分享到:
相关推荐
mvn install:install-file -DgroupId=io.confluent -DartifactId=kafka-schema-registry-client -Dversion=6.2.2 -Dfile=/root/kafka-schema-registry-client-6.2.2.jar -Dpackaging=jar 官网下载地址 packages....
赠送jar包:xmlschema-core-2.1.0.jar; 赠送原API文档:xmlschema-core-2.1.0-javadoc.jar; 赠送源代码:xmlschema-core-2.1.0-sources.jar; 赠送Maven依赖信息文件:xmlschema-core-2.1.0.pom; 包含翻译后的API...
赠送jar包:springfox-schema-3.0.0.jar; 赠送原API文档:springfox-schema-3.0.0-javadoc.jar; 赠送源代码:springfox-schema-3.0.0-sources.jar; 赠送Maven依赖信息文件:springfox-schema-3.0.0.pom; 包含...
kafka-schema-registry-client-3.3.1.jar包,在aliyun 仓库内无法下载,可以下载此jar包然后手动安装
kafka-schema-registry-client-3.2.0.jar包,亲测可用,在aliyun仓库内找不到,可以下载此jar包来进行手动安装
资源分类:Python库 所属语言:Python 使用前提:需要解压 资源全名:jsonschema-4.0.0a1-py2.py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
xmlschema-core-2.0.3.jar;xmlschema-core-2.0.3.jar;xmlschema-core-2.0.3.jar
kafka-schema-registry-client.jar,kafka客户端所需的jar包,maven中已经找不到,所以将自己本地的分享出来。
JSON Schema 生成库——json-schema-inferrer(java版).rar
赠送jar包:springfox-schema-3.0.0.jar; 赠送原API文档:springfox-schema-3.0.0-javadoc.jar; 赠送源代码:springfox-schema-3.0.0-sources.jar; 赠送Maven依赖信息文件:springfox-schema-3.0.0.pom; 包含...
赠送jar包:springfox-schema-2.4.0.jar; 赠送原API文档:springfox-schema-2.4.0-javadoc.jar; 赠送源代码:springfox-schema-2.4.0-sources.jar; 包含翻译后的API文档:springfox-schema-2.4.0-javadoc-API...
赠送jar包:springfox-schema-2.7.0.jar; 赠送原API文档:springfox-schema-2.7.0-javadoc.jar; 赠送源代码:springfox-schema-2.7.0-sources.jar; 赠送Maven依赖信息文件:springfox-schema-2.7.0.pom; 包含...
赠送jar包:springfox-schema-2.9.2.jar; 赠送原API文档:springfox-schema-2.9.2-javadoc.jar; 赠送源代码:springfox-schema-2.9.2-sources.jar; 赠送Maven依赖信息文件:springfox-schema-2.9.2.pom; 包含...
cxf jar xmlschema-core-2.0.jar
资源来自pypi官网。 资源全名:jsonschema_pyref-0.1.0-py3-none-any.whl
适用于任何设计系统的JSON模式表单+ UI生成器,对的一流支持,轻松创建自己的小部件和插件。 @ ui-schema / ui-schema @ ui-schema / ds-material @ ui-schema / ds-bootstrap @ ui-schema /专业 @ ui-...
赠送jar包:springfox-schema-2.7.0.jar; 赠送原API文档:springfox-schema-2.7.0-javadoc.jar; 赠送源代码:springfox-schema-2.7.0-sources.jar; 赠送Maven依赖信息文件:springfox-schema-2.7.0.pom; 包含...
XML schema 编辑工具 xxe-perso-4_9_1
赠送jar包:springfox-schema-2.9.2.jar; 赠送原API文档:springfox-schema-2.9.2-javadoc.jar; 赠送源代码:springfox-schema-2.9.2-sources.jar; 赠送Maven依赖信息文件:springfox-schema-2.9.2.pom; 包含...
前端开源库-json-schema-to-markdown-tablejson模式到markdown表,将json模式转换为markdown表