谈谈MYSQL那点事16G ,最好本值超 1024M innodb_flush_log_at_trx _commit 1 0 0 代表日志只大约每秒写入日志文件并且日志文件 刷新到磁盘 ; 1 为执行完没执行一条 SQL 马上 commit; 2 代表日志写入日志文件在每次提交 后 , 但是日志文件只有大约每秒才会刷新到磁盘上 . 对速度影响比较大,同时也关系数据完整性 innodb_log_file_size 设计合理的数据表结构:适当的数据冗余 设计合理的数据表结构:适当的数据冗余 对数据表建立合适有效的数据库索引 对数据表建立合适有效的数据库索引 数据查询:编写简洁高效的 数据查询:编写简洁高效的 SQL SQL 语句 语句 应用优化 应用优化 应用优化方式 应用优化方式 应用优化 应用优化 表结构设计原则 表结构设计原则 选择字段的一般原则是保小不保大,能用占用字节 少的字段就不用大字段。比如,主键,强烈建议用 date/tim date/tim e e 等 等 类型的字段建立索引 类型的字段建立索引 需要的时候建立联合索引,但是要注意查询 需要的时候建立联合索引,但是要注意查询 SQL SQL 语句的编写 语句的编写 谨慎建立 谨慎建立 unique unique 类型的索引(唯一索引) 类型的索引(唯一索引) 大文本字段不建立为索引,如果要对大文本字段进行检索,0 码力 | 38 页 | 2.04 MB | 1 年前3
MySQL wire protocol (Oct 31, 2023)Team) 31 October 2023 Agenda Motivation and Context 01 MySQL Wire Protocol Compatibility 02 MySQL SQL Dialect Compatibility 03 2 Motivation 3 ClickHouse and Other Databases 4 Setting up ClickHouse Connection from MySQL 5 ● Adding a few lines to config.xml: ● And (quite) com/docs/en/integrations/lookerstudio#on-premise-clickhouse-server-setup Don’t fail on commands such as SET SQL_AUTO_IS_NULL = 0 Enabling ClickHouse -> MySQL types translation in SHOW [FULL] COLUMNS queries By9004 SQL_,custom_ 0 码力 | 16 页 | 3.04 MB | 1 年前3
使用 Docker 建立 MySQL 集群同样需要重启。 3.4 使用客户端连接上主数据库,这里我使用的是 mysql workbench,从数据库因为 安全考虑并没有公开端口给主机,只能进入容器的 mysql 控制台进行操作。 在主数据库中执行 SQL 脚本: /*设定用于同步的账号、密码*/ grant replication slave on *.* to ‘sync’@'%' identified by 'sync'; /*保存权限设定*/ flush privileges; /*查看主数据日志状态,需要记住查询结果 File 和 Position 值,是从数据库复 制的日志起点*/ show master status; 在从数据库中执行 SQL 脚本: /*如果已经开启了同步,停止同步*/ stop slave; /*设定主数据库*/ change master to master_host='master_db', master_user='sync'0 码力 | 3 页 | 103.32 KB | 1 年前3
A Day in the Life of a Data Scientist Conquer Machine Learning Lifecycle on KubernetesSolution is Kubernetes: • Highly Scalable • Easy to explore hyper-parameters space • Easy to do distributed training But really, Data Scientists shouldn’t have to care about containers, kubernetes and that stuff • Pachyderm can version datasets and trigger new trainings when changes occur • Distributed File Systems • NFS • HDFS • … Classic DevOps solutions: • Containers • CI/CD • Autoscaling0 码力 | 21 页 | 68.69 MB | 1 年前3
MySQL 8.0.17 调优指南(openEuler 20.09)System,关系数据库管理系 统)应用软件之一。 MySQL是一种关系数据库管理系统,关系数据库将数据保存在不同的表中,而不是将 所有数据放在一个大仓库内,这样就增加了速度并提高了灵活性。 MySQL所使用的SQL语言是用于访问数据库的最常用标准化语言。MySQL软件采用了 双授权政策,分为社区版和商业版,由于其体积小、速度快、总体拥有成本低,尤其 是开放源码这一特点,一般中小型网站的开发都选择 MySQL作为网站数据库。0 码力 | 11 页 | 223.31 KB | 1 年前3
清华大学 DeepSeek+DeepResearch 让科研像聊天一样简单snails distributed across a vertical rocky intertidal gradient. Functional Ecology 25:177-185 Bourdeau PE(2011) Constitutive and inducible defensive traits in co-occurring marine snails distributed across0 码力 | 85 页 | 8.31 MB | 8 月前3
RocketMQ v3.2.4 开发指南html CORBA Notification Service Specification 1.1 http://www.omg.org/spec/NOT/1.1/PDF Distributed Transaction Processing: The XA Specification http://pubs.opengroup.org/onlinepubs/009680699/toc0 码力 | 52 页 | 1.61 MB | 1 年前3
共 7 条
- 1













