36. Rails
• Community-based best practices
• Continuous revolution
• contributed by top developers
• cutting-edge technologies & ideas running
on production
• Online training courses provided by Google
40. Rails
• Community-based best practices
• Continuous revolution
• contributed by top developers
• cutting-edge technologies & ideas running
on production
55. • Common sense of DB tuning
• Avoid N+1 Query
using “bullet” plugin , :include => [:comment]
56. • Common sense of DB tuning
• Avoid N+1 Query
• Use Counter Cache
belongs_to :post, :counter_cache => “true”
57. • Common sense of DB tuning
• Avoid N+1 Query
• Use Counter Cache
• Use CONSTANT
CONSTANT will cache in memory
58. • Common sense of DB tuning
• Avoid N+1 Query
• Use Counter Cache
• Use CONSTANT
• ADD INDEX
EXPLAIN every query, avoid table scan
using “rails_index” plugin
59. • Common sense of DB tuning
• Avoid N+1 Query
• Use Counter Cache
• Use CONSTANT
• ADD INDEX
• SELECT ONLY NEED
using “scrooge” plugin replace SELECT *
75. • Modern Architecture
• Bundler
1 project have 10-20+ gem / plugins
A require ‘Z’ v=0.2.1 B require ‘Z’ v=0.1.2 => conflict!
some plugin only have trunk version, especially when we are in Rails 3.0.0 pre