lua-resty-mysql icon indicating copy to clipboard operation
lua-resty-mysql copied to clipboard

mysql查询是否串行

Open moonwith opened this issue 3 years ago • 1 comments

mysql驱动的实现方式是构造消息包通过nio发送来达到不阻塞的目的。那就有个问题,如果做两次查询,能否确保先做的查询必然先被mysql服务端处理完毕,并且先返回给客户端呢?

moonwith avatar Aug 20 '21 11:08 moonwith

如果无法确保,那客户端只能通过队列来自己保证了么

moonwith avatar Aug 20 '21 11:08 moonwith