7

I am sharding my data into multiple mysql databases, but sometimes I will need to gather information from multiple shards. How can I query multiple mysql databases in parallel in php?

I've seen some examples of asynchronous curl requests and shell_exec, but is there a more direct way?

1 Answer 1

4

The new mysqlnd driver can perform asynchronous queries. Documentation is sparse, but there are some examples (also relating to sharding) in a presentation here.

Sign up to request clarification or add additional context in comments.

1 Comment

Here is a better link I think. mysqlperformanceblog.com/2013/03/06/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.