共 33 篇文章 |
|
MGR的参数。(MGR节点的几个状态)MGR的要求:https://dev.mysql.com/doc/refman/5.7/en/group-replication-requirements.htmlMGR的限制:https://dev.mysql.com/doc/refman/5.7/en/group-replication-limitations.html参数配置:https://dev.mysql.com/doc/refman/5.7/en/group-replication-configuring-instances.htmlpython工具包:Python M... 阅115 转0 评0 公众公开 20-12-30 17:09 |
MySQL5.7新特性MGR简介。MGR与其他复制的对比介绍MySQL异步复制。另外,在高并发的情况下,传统的主从复制,从节点可能会与主产生较大的延迟(当然mysql后续版本陆续做了优化,推出了并行复制,以此降低异步复制的延迟)MySQL半同步复制。基于传统异步复制和半同步复制的缺陷——数据的一致性问题无法保证,MySQL官方在5.7.17版本正式推出组复... 阅36 转0 评0 公众公开 20-12-30 15:56 |
阅127 转0 评0 公众公开 20-12-15 15:33 |
} if( pEList==0 ){ pEList = sqlite3ExprListAppend(pParse, 0, sqlite3Expr(db,TK_ALL,0));codeOneLoopStart针对5种不同的查询策略,生成各自不同的opcode:代码 if( pLevel->plan.wsFlags & WHERE_ROWID_EQ ){ //rowid的等值查询...}else if( pLevel->plan.wsFlags & WHERE_ROWID_RANGE ){//rowid的范围查询...//使用索引... 阅16 转0 评0 公众公开 20-12-14 18:19 |
阅209 转0 评0 公众公开 20-12-11 16:15 |
中间层是sc表,利用索引sqlite_autoindex_sc_1,即sc的key对应的索引;代码 1 static const u8 aStep[] = { OP_Next, OP_Prev };2 static const u8 aStart[] = { OP_Rewind, OP_Last };3 pLevel->op = aStep[bRev];4 pLevel->p1 = iCur;5 pLevel->p2 = 1 + sqlite3VdbeAddOp2(v, aStart[bRev], iCur, addrBrk); //生... 阅150 转0 评0 公众公开 20-12-11 12:08 |
3.运行lemon(lemonxxx.y),生成一个能够进行语法分析的C源文件,一个定义终结符整数代号的头文件和一个包含语法分析所有状态的自动机信息报告文件.ParseTOKENTYPE, /* 记号的值,这个类型是程序员自定义的,是.y文件中占位符的类型;占位符是规则段小括号中的大写字母,表示记号的值,又因记号一般不会只有一个类型,因此ParseTOKENTYPE可能是一... 阅254 转0 评0 公众公开 20-12-11 11:37 |
The Lemon Parser Generator.The input grammar to Lemon consists of grammar rules and specialdirectives.%destructor%extra_argument%include%left%name%nonassoc%parse_accept%parse_failure %right%stack_overflow%stack_size%start_symbol%syntax_error%token_destructor%token_prefix%token_type%typeEach of these directives will be... 阅23 转0 评0 公众公开 20-12-11 11:27 |
Reduce Action :Reduce Rule Index =action value – TotalState => 10-7= 3=> expr ::= INTEGERReduceToken = yyRuleinfo[3].lhs => 5TotalRHSSymbol = yyRuleinfo[3].nrhs => 1Stateno :get Previous Stack Index: Current Stack Index – TotalRHSSymbol =3-1 => 2PreviousStateno= stack[2].stateno => 2 =yy_action[yy_... 阅109 转0 评0 公众公开 20-12-10 11:44 |
词法分析器flex和语法分析器lemon的初步使用。}expr(A) ::= expr(B) PLUS expr(C).}expr(A) ::= expr(B) DIVIDE expr(C).最后输入结束符,先把NUM规约为expr,此时栈中有expr、PLUS、expr再由expr(A) ::= expr(B) PLUS expr( C).语法继续规约为expr,由于现在输入是结束符,所以expr最后还可以规约为program,这时候解析完全结束,会调用yy_acc... 阅185 转1 评0 公众公开 20-12-09 15:14 |