# Ruby On Rails 에서 빠른 코드 작성하기

> Clean Markdown view of GeekNews topic #712. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=712](https://news.hada.io/topic?id=712)
- GeekNews Markdown: [https://news.hada.io/topic/712.md](https://news.hada.io/topic/712.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2019-10-13T09:28:30+09:00
- Updated: 2019-10-13T09:28:30+09:00
- Original source: [engineering.shopify.com](https://engineering.shopify.com/blogs/engineering/write-fast-code-ruby-rails)
- Points: 4
- Comments: 0

## Topic Body

RoR을 많이 쓰는 Shopify가 공유하는 자신들의 경험 : Active Records, Rails, Ruby 에서 빠른 코드 작성하는 법

- ActiveRecord : SQL실행 시점 확인, 적게 Select 하기, Query Cache 의존하지 말기, 인덱스 안된 컬럼 쿼리 피하기 ( LHM 사용 )

- Rails : 모두 Cache 하기, Throttling 하기 ( rack-attack 또는 rack-throttle ), Sidekiq 또는 Resque 사용하여 Job 나중에 실행하기 ,  의존성 다이어트

- Ruby : Metaprogramming 사용은 최소한, 적게 Allocate 하기, Indirection 최소화

## Comments



_No public comments on this page._
