Finally got around to writing up a cool PostgreSQL trick on the PatientsLikeMe tech blog. WillPaginate in Half the Time.