I could extract the relevant lines from our library and refactor it not to use our DB:: code. If you think it's a good post, let me know, and I'll whip it up.
All you need is mysqli_poll(). It sounds dirty, but it's not a spin lock or anything.
You can, in fact, issue multiple queries over the same connection, but they won't be parallelized. They're run in series. You need that for transactions, but it also avoids a round trip.
dev.mysql.com/doc/refman/5.1/en/c-a
...
MySQL's documentation alludes to leveraging partitioning to parallelize queries one day.
"Queries involving aggregate functions such as SUM() and COUNT() can easily be parallelized. A simple example of such a query might be SELECT salesperson_id, COUNT(orders) as order_total FROM sales GROUP BY salesperson_id;. By “parallelized,” we mean that the query can be run simultaneously on each partition, and the final result obtained merely by summing the results obtained for all partitions."
Basically a limited map-reduce.
I'll do the post if you think it'll be interesting.