For my own edification and to facilitate the addition of UUIDs to Drupal, I have used SchemaSpy to create an overview of Drupal’s database schema as generated by today’s HEAD.
I have begun my quest to convert Drupal over to using UUIDs instead of IDs so that merging/branching drupal databases will be easier.
The first thing to figure out is how best to generate UUIDs in PHP. The naive pure-php approaches that use rand() have quickly proven to be non-viable (generating 10 of them hasn’t completed after several minutes), at least on my test virtual machine, presumably on account of running out of randomness.
The OSSP UUID module for PHP5 is much better, generating 60k “type 4” (completely random) uuids per second. However, the memory usage grows the more UUIDs you generate, so that could be an issue. So despite the fact that this module implies a C module that has to be available to PHP, I’m going to use it.
I will try to keep my implementation open to creating UUIDs in the DB, as PostgreSQL uses the same library to create UUIDs, so no sense in reinventing the wheel. MySQL UUIDs are broken in any sort of replicated environment (in that you can get the same UUID repeatedly from a given SELECT UUID();) so I must have a language-level version available.
So now that I’ve elected to settle on the OSSP UUID module, I can take the next steps towards making it work in Drupal.
OK I’m older now much older than I was when I was young. It’s been fun going around the sun. Hope to see you all here next time.
I’m almost older now and some people have been asking me what they should get me. I like immaterial gifts like calling me and/or letting me know you forgive me for one of my many transgressions; you could also let me know you want to hang out with me on or near the 22nd and I’ll let you know what I’m doing.
If you want to get me something material I have an amazon wishlist that is pretty well-sorted, and I just deleted all the stuff off of it I’ve already bought.
I am also, of course, interested in surprises. Thanks for caring about my birthday!
So I’m working on a steampunk-ish game that occurs in a gas giant - usual “colonization effort gone bad, descendants with primitive tech” sort of situation, except these folk actually have to stay afloat lest they be crushed to death by the pressure.
After a very tumultuous month involving lots of financial uncertainty, I landed a job with the most excellent Acquia, where I expect to work helping Drupal become the preeminent open-source CMS/ social software platform. I also have just been able to get back on the wagon with my psychopharmacology so my sketchiness should decline markedly. Thanks for the patience folks around me have been able to muster, and here’s hoping that the rest of the summer is relatively smooth sailing.