dbc-curriculum/karmaville — pull request #3 by brettsanders (2013-08-12 18:47:27+00:00)
Title: finish part 1

denormalized users table, added karma_total field with sum of karma_total for user

for seeding data from karma_points to users
add index on user_id

for speed loading index page
add index on karma_total field in users table
retrieve records with one request
@users = User.order('karma_total DESC').limit(50)

page loads around 200ms