A couple of weeks ago I blogged about Sharing an auto_increment value across multiple MySQL tables. In the comments, a few people wrote in to suggest alternative ways of implementing this. I just got around to benchmarking those alternatives today across two large EC2 machines:
(Measured in transactions/second – higher is better)
What is the conclusion? With the exception of my original option2, they actually all perform fairly similar. The Flickr and Option1 tests perform marginally better. Test “arjen2″ is option2, but with a MyISAM table — it suffers a little because EC2 can be a little high for latency, and there’s …
[Read more]