Concurrent mysql queries in php?

I put my data in several mysql databases, but sometimes I need to collect information from several shards. How can I query multiple mysql databases in parallel in php?

I saw several examples of asynchronous curl and shell_exec requests, but is there a more direct way?

+7
php mysql parallel-processing
source share
1 answer

The new mysqlnd driver can execute asynchronous requests. The documentation is sparse, but there are examples (also related to outlines) in the presentation here .

+4
source share

All Articles