/RandomRow

Efficiently randomize the selection of rows from a large database.

Primary LanguageRuby

Instructions to deploy this application:
(requires a running instance of mysql)

For more information, see my blog post at http://davidrenz.net (bit.ly/fqFAH9)

git clone git@github.com:drenz/RandomRow.git

cd RandomRow

bundle install

# configure the database to match your install
vim config/database.yml

rake db:setup RAILS_ENV="development"

# configure load the sample tweets
mysql -u root -p -D RandomRow_development < db/tweets.sql 

rails s

In a web browser, go to localhost:3000/tweets