第1章 主从复制架构演变 1.1 高性能架构 读写分离架构(读性能较高) 1.代码级别 MySQL proxy (Atlas,mysql router,proxySQL(percona),maxscale)、 amoeba(taobao) xx-dbproxy等。 2.分布式架构(读写性能都提高): ...
分类:
数据库 时间:
2020-05-25 23:41:10
阅读次数:
123
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3383 Accepted Submission(s): 1169 Problem Descri... ...
分类:
其他好文 时间:
2020-05-25 15:47:49
阅读次数:
51
题面 Time limit per test: 2 seconds Memory limit per test: 256 megabytes Description Consider all binary strings of length m ( 1≤m≤60 ). A binary string ...
分类:
其他好文 时间:
2020-05-25 12:26:07
阅读次数:
95
limit 查询 -- limit start, count-- 限制查询出来的数据个数 -- 查询前5个数据 select * from students limit 0, 5; -- 分页查询: select * from students limit (n-1)*m, m; -- 每页显示2个 ...
分类:
数据库 时间:
2020-05-24 13:42:19
阅读次数:
75
在处理导入导出大数据的情况下,一般要调整以下一些参数: 1.php.ini: set_time_limit(0); max_execution_time=1200; 这个是程序执行时间; 2.php-fpm.conf: request_terminate_timeout 1200; 3.nginx_ ...
分类:
其他好文 时间:
2020-05-24 09:16:00
阅读次数:
47
单表查询语句 查看所有:select * from teacher 查看特殊的行:select * from teacher where tid=2 查看特殊字段:select tname from teacher 分页查询 select * from score limit 0,5; // lim ...
分类:
数据库 时间:
2020-05-23 12:54:35
阅读次数:
73
git clone时报RPC failed; curl 18 transfer closed with outstanding read data remaining 错误 error: RPC failed; curl 18 transfer closed with outstanding rea ...
分类:
Web程序 时间:
2020-05-23 00:23:14
阅读次数:
412
07.分页 使用limita分页 使用mybatis实现分页,核心sql 1. 接口 2. mapper.xml 3. 测试 使用RowBounds实现分页,不再使用sql分页 1. 接口 2. mapper.xml 3. 测试 ...
分类:
其他好文 时间:
2020-05-22 09:25:31
阅读次数:
44