EmergencyEMERGENCY? Get 24/7 Help Now!

Store UUID in an optimized way

 | December 19, 2014 |  Posted In: MySQL

A few years ago Peter Zaitsev, in a post titled “To UUID or not to UUID,” wrote: “There is timestamp based part in UUID which has similar properties to auto_increment and which could be used to have values generated at same point in time physically local in BTREE index.” For this post I’ve rearranged the timestamp part […]

Read More

Sharing an auto_increment value across multiple MySQL tables

 | October 4, 2010 |  Posted In: Benchmarks, Insight for Developers, MySQL

The title is SEO bait – you can’t do it. We’ve seen a few recurring patterns trying to achieve similar – and I thought I would share with you my favorite two: Option #1: Use a table to insert into, and grab the insert_id:

Option #2: Use a table with one just row:

Read More