Solving the N+1 Problem; or, "A Stitch In Time Saves Nine"

My article for this year's PHP Advent is up. In it, I show one way to deal with the N+1 problem in your PHP code, and present a reusable package to help with it. Since PHP Advent doesn't support comments, please leave your comments about the article below.

UPDATE (08 Dec 2011): Per request, here's a link to the Aura.Marshal package.

Are you stuck with a legacy PHP application? You should buy my book because it gives you a step-by-step guide to improving your codebase, all while keeping it running the whole time.