Agile Web Development with Rails, Edition 4
Table of Contents
Environment
Tue, 18 Nov 2014 22:17:21 GMT
git log -1
commit 52fddcc653458456f98b3683dffd781cf00b35fe
Author: Sean Griffin <sean@thoughtbot.com>
Date: Tue Nov 18 13:40:03 2014 -0800
Speed up integer casting from DB
We don't have the check the range when the value is coming from the DB,
so override type_cast_from_database to short-circuit the extra work.
The difference is huge but the absolute gain is quite small. That being
said this is a hotspot and it showed up on the radar when benchmarking
discourse.
rake about
About your application's environment
Rails version 4.2.0.beta4
Ruby version 2.1.2-p95 (x86_64-linux)
RubyGems version 2.2.2
Rack version 1.5
JavaScript Runtime Node.js (V8)
Middleware Rack::Sendfile,
ActionDispatch::Static,
Rack::Lock,
#<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000004657738>,
Rack::Runtime,
Rack::MethodOverride,
ActionDispatch::RequestId,
Rails::Rack::Logger,
ActionDispatch::ShowExceptions,
ActionDispatch::DebugExceptions,
ActionDispatch::RemoteIp,
ActionDispatch::Reloader,
ActionDispatch::Callbacks,
ActiveRecord::Migration::CheckPending,
ActiveRecord::ConnectionAdapters::ConnectionManagement,
ActiveRecord::QueryCache,
ActionDispatch::Cookies,
ActionDispatch::Session::CookieStore,
ActionDispatch::Flash,
ActionDispatch::ParamsParser,
Rack::Head,
Rack::ConditionalGet,
Rack::ETag
Application root /home/rubys/git/awdwr/edition4/work-212/depot
Environment development
Database adapter sqlite3
Database schema version 20141118000009
bundle show
Gems included by the bundle:
* actionmailer (4.2.0.beta4)
* actionpack (4.2.0.beta4)
* actionview (4.2.0.beta4)
* activejob (4.2.0.beta4)
* activemodel (4.2.0.beta4)
* activerecord (4.2.0.beta4)
* activesupport (4.2.0.beta4)
* arel (6.0.0.beta2)
* binding_of_caller (0.7.3.pre1)
* builder (3.2.2)
* bundler (1.7.6)
* byebug (3.5.1)
* coffee-rails (4.1.0)
* coffee-script (2.3.0)
* coffee-script-source (1.8.0)
* columnize (0.8.9)
* debug_inspector (0.0.2)
* debugger-linecache (1.2.0)
* erubis (2.7.0)
* execjs (2.2.2)
* globalid (0.3.0)
* hike (1.2.3)
* i18n (0.7.0.beta1)
* jbuilder (2.2.5)
* jquery-rails (4.0.0.beta2)
* json (1.8.1)
* loofah (2.0.1)
* mail (2.6.3)
* mime-types (2.4.3)
* mini_portile (0.6.1)
* minitest (5.4.3)
* multi_json (1.10.1)
* nokogiri (1.6.4.1)
* qu (0.2.0)
* qu-rails (0.2.0)
* rack (1.6.0.beta)
* rack-test (0.6.2)
* rails (4.2.0.beta4)
* rails-deprecated_sanitizer (1.0.3)
* rails-dom-testing (1.0.4)
* rails-html-sanitizer (1.0.1)
* railties (4.2.0.beta4)
* rake (10.3.2)
* rdoc (4.1.2)
* sass (3.4.8)
* sass-rails (5.0.0.beta1)
* sdoc (0.4.1)
* slop (3.6.0)
* spring (1.1.3)
* sprockets (2.12.3)
* sprockets-rails (3.0.0.beta1)
* sqlite3 (1.3.10)
* thor (0.19.1)
* thread_safe (0.3.4)
* tilt (1.4.1)
* turbolinks (2.5.2)
* tzinfo (1.2.2)
* uglifier (2.5.3)
* web-console (2.0.0.beta4)
gem -v
2.2.2
/home/rubys/.rvm/rubies/ruby-2.1.2/bin/ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
rvm -v
1.26.3 (latest)
nodejs -v
v0.10.25
echo $PATH
/home/rubys/.rvm/gems/ruby-2.1.2/bin
/home/rubys/.rvm/gems/ruby-2.1.2@global/bin
/home/rubys/.rvm/rubies/ruby-2.1.2/bin
/home/rubys/.rvm/bin
/usr/local/bin
/usr/bin
/bin
lsb_release -irc
Distributor ID: Ubuntu
Release: 14.04
Codename: trusty
uname -srm
Linux 3.13.0-39-generic x86_64
Todos
None!