Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 290 Bytes
require 'rubygems'
require 'bundler/setup'
require 'sequel'
require 'benchmark'
DB = Sequel.connect(ENV['DATABASE_URL'])
items = DB[:orders] # Create a dataset
puts items.count
DB.run "set search_path to myschema;"
items = DB[:distributors] # Create a dataset
puts items.count
sleep 100