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 数据库中,但有时我需要从多个分片收集信息。如何在php中并行查询多个mysql数据库?
我见过一些异步 curl 请求和 shell_exec 的例子,但是有没有更直接的方法呢?
新的 mysqlnd 驱动程序可以执行异步查询。文档很少,但这里的演示文稿中有一些示例(也与分片有关)。