通用性能优化:缓存 异步 批处理
应用层优化:
写操作:批量insert,批量update.
读操作:索引
mysql批量写优势
Sql编译N次和1次的时间与空间复杂度
网络消耗的时间复杂度
磁盘寻址的复杂度
mysql单机应用的性能优化
max_connection=1000
innodb_file_per_table=1
innodb_buffer_pool_size=1G
innodb_log_file_size=256M
innodb_log_buffer_size=256M
innodb_flush_log_at_trx_commit=2 需要放mysqlld_safe节点下。
innodb_data_file_path=ibdatal:1G;ibdata2:1G;ibdata3:1G:auto extend
本文地址:https://blog.csdn.net/qq_17721239/article/details/107644228
如对本文有疑问, 点击进行留言回复!!
在Ubuntu/Linux环境下使用MySQL开放/修改3306端口和开放访问权限
ORM框架Peewee(高级连接)peewee连接池、主从、重连、ssh连接
记一次Mysql主从复制延迟,Waiting for dependent transaction to commit
网友评论