Efficiently randomize the selection of rows from a large database.
Ruby JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/plugins
.gitignore
.project
Gemfile
Gemfile.lock
README
Rakefile
config.ru

README

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