yanglimingcn commented on issue #692: Add Mysql Protocol, only support text 
protocol now, not support trans…
URL: https://github.com/apache/incubator-brpc/pull/692#issuecomment-480142246
 
 
   
多次的交互如果对用户屏蔽,就需要像权限校验那样,在parseResponse的地方做多次的处理,我觉得这样可行。这样用户操作应该挺简洁的。而且single估计也可以了呢。
   但是prepared 
statement这种有点区别,prepare目的是想让用户执行一次prepare,生成一个stmt,然后后边用户一直用这个stmt操作,这个stmt对应到数据库里面一个已经解析过的语句,这样能避免数据库每次都解析这个语句,所以这种肯定得要多次交互使用的。但是prepare可以做到不关联某个连接,如果应用stmt的某次操作底层连接变了,我可以底层再发一次prepare。stmt要记录一下它用过的连接,如果后边执行操作选择的连接以前用过就不用发prepare,如果没用过就发prepare。所以这块儿的修改是得在发送命令前有一个位置对选择的连接做比较。
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to