I'm a big fan of common_schema. It's a really powerful and flexible tool, and I'm always looking for new ways to use it.
Last week I had to update millions of rows across many databases to tokenize some persisted URL values, and I remembered reading Baron Schwartz's recent blog post about using the common_schema split feature. Baron's use case was deleting data, but I figured this could work well to break my large updates into chunks too. I had already written the update statements I wanted to execute, and after five minutes reading the common_schema documentation I was ready to try it out on a dev database.
One …
[Read more]