[Phabricator] 代码审查工具 2020-08-13 git 1412 words 3 mins read Phabricator是Facebook开源的一个可视化的代码审查工具 安装 1 2 git clone https://github.com/phacility/libphutil.git git clone https://github.com/phacility/arcanist.git arc执行文件路径加载到系统路径并加载 1 2 3 source ~/.bash_profile arc Read more...
[MySQL] MySQL通过Sys库查看数据库运行情况 2020-08-12 mysql 1379 words 3 mins read 快捷的了解到MySQL的一些信息 sys库里面的表、视图、函数、存储过程可以使我们更方便、快捷的了解到MySQL的一些信息,比如哪些语句使用了 Read more...
[MySQL] MySQL autocommit 2020-08-12 mysql 308 words 1 min read MySQL autocommit 控制是否开启隐式事务 查看状态 mysql> show variables like '%autocommit%'; 开启自动提交 mysql> set autocommit=1; 关闭自动提交 使用commit提交事务操作,或者使用rollback回滚操作 配置文 Read more...
[Go] 一个Golang实现的MySQL基准测试工具 2020-08-12 golang 175 words 1 min read benchyou is a benchmark tool for MySQL, similar Sysbench. Introduction benchyou is a benchmark tool for MySQL, real-time monitoring TPS and vmstat/iostat Build 1 2 3 $ git clone https://github.com/xelabs/benchyou $ cd benchyou $ make build Usage 1 $ ./bin/benchyou -h Examples 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 prepare 64 tables: ./bin/benchyou --mysql-host=192.168.0.3 Read more...
[Go] Golang实现一个工作池 2020-08-11 golang 584 words 2 mins read Golang实现一个工作池处理并发任务 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 Read more...