Skip to content

Instantly share code, notes, and snippets.

@ysr23
Created November 3, 2011 07:45
Show Gist options
  • Save ysr23/1335987 to your computer and use it in GitHub Desktop.
Save ysr23/1335987 to your computer and use it in GitHub Desktop.
Time taken to fill DB on 2 machines

On my scrotebook

toast@scrotebook:~/ruby/twelly/script$ ./filldb.sh

  • cd /var/www/twelly/
  • export PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/www/twelly/lib:/usr/local/bin
  • PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/www/twelly/lib:/usr/local/bin
  • export RAILS_ENV=development
  • RAILS_ENV=development ++ date

+ echo 'Thu Nov 3 04:13:07 GMT 2011: filldb started'

+ echo 'Thu Nov 3 05:33:44 GMT 2011: filldb finished'

On my twelly server

toast@twelly-server:~/ruby/twelly/script$ ./filldb.sh

  • cd /home/toast/ruby/twelly/
  • export PATH=/home/toast/.rvm/gems/ruby-1.9.2-p290/bin:/home/toast/.rvm/gems/ruby-1.9.2-p290@global/bin:/home/toast/.rvm/rubies/ruby-1.9.2-p290/bin:/home/toast/.rvm/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/bin
  • PATH=/home/toast/.rvm/gems/ruby-1.9.2-p290/bin:/home/toast/.rvm/gems/ruby-1.9.2-p290@global/bin:/home/toast/.rvm/rubies/ruby-1.9.2-p290/bin:/home/toast/.rvm/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/bin
  • export RAILS_ENV=development
  • RAILS_ENV=development ++ date

echo 'Wed Nov 2 14:38:54 GMT 2011: filldb started'

echo 'Wed Nov 2 16:24:37 GMT 2011: filldb finished'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment