Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果同时在 mysql 上发送数百个通过 mysqli(php extension) Persistent Connection 的查询,查询会按照与请求相同的顺序进入队列运行?
查询是否会按照与请求相同的顺序进入队列运行?
是的。 不管它是 mysqli 还是持久化都没有关系。
它也不会是“同一时间”。 每个持久连接一次只被一个 PHP 进程使用。这样的过程是按顺序执行的,一个接一个地运行一个查询。