task_loop
独自完成所有任务的调度
coroutine的意义就是不要stack
https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
一张MGR切换的图,不解释
change buffer太复杂了
http://mysql.taobao.org/monthly/2015/07/01/
mtr语言真是逆天了
实践证明,设计一个语言,还不是简单的解释没一行哦
mysql自动化测试第一个例子
#################################################################################Thistestverifieswhetherthegroup_replicationworksfinewhentheserver#ina
mysql mtr写入数据
BEGIN;--disable_query_log--let$rows=100WHILE($rows){--evalINSERTINTOt1(a)VALUES($rows)--dec$rows}--enable_query_log--errorER_RUN_HOOK_ERRORCOMMIT;
垃圾规范
https://blog.csdn.net/android_huber/article/details/7371941这种规则也太垃圾了吧
莫名其妙的混用错误
release版本与debug版本混用,可能会导致程序莫名其妙的错误。在测试中MGR的plugin使用debug版本,其他部分是release编译,这样无法启动MGR,并导致系统crash
一个导致MGR数据混乱Bug的分析和修复
1、背景MGR是个好东西,因为他从本质上解决了数据不一致的问题。不光是解决了问题,而且出自名门正派(Oracle的MySQL团队),对品质和后续的维护,我们是可以期待的。但是在调研的过程中,发现有个严重的bug(https://bugs.mysql.com/bug.php?id=92690),在网络
gh-ost的延迟控制机制
root@sbtest04:46:19>select*from_yougege_ghclimit10\G***************************1.row***************************id:1last_update:2019-02-1316:46:38hi
MGR的debug版本
debug版本的MGR相较于非debug版本,applier性能差距有40倍之多。
c语言版本的coroutine
#include<stdio.h>intfunction(void){staticinti,state=0;switch(state){case0:gotoLABEL0;case1:gotoLABEL1;}LABEL0:/*startoffunction*/for(i=0;i<10
检查数据不一致脚本
importMySQLdbmax_id=250000sql_prefix="selectcrc32(group_concat(concat(id,k,c,pad)))fromsbtest1whereid>=%sandid<%s"xhdb1=MySQLdb.connect(host="*"
索引的新理解
原来以为限制是多个字段一起限制,原来是针对单个字段的限制
数据库放到容器里
有什么好处啊
动态规划
P219file:///Users/wangguangyou/Downloads/%E7%AE%97%E6%B3%95%E5%AF%BC%E8%AE%BA%20%E7%AC%AC%E4%B8%89%E7%89%88%20.pdf
pg执行计划
每天晚上一个动态规划
如题
postgresql parallel join example
CREATETABLEpublic.pgbench_accounts_bak(aidintegerNOTNULL,bidinteger,abalanceinteger,fillercharacter(84));ALTERTABLEpublic.pgbench_accounts_bakOWNERTOp