Ruby script to load balance a table with an eye on data locality