Comment

JJ

I was just thinking, why not to use "in_bulk" to get a random id's. This could reduce number of requests to the db significantly.