Re:Ask HN: How can I ensure my Ruby on Rails App will be sca...
by artellectual on Sunday July 28, 2013 @10:24PM
(#6119029)
There are a few rules I follow at the beginning of building an app.
- avoid n + 1 queries
- shorten response time as much as possible without caching (focus on good code, avoid logic etc..., least db queries as possible)
- anything that takes longer than 100ms to process I use async processing to handle it.
- avoid n + 1 queries - shorten response time as much as possible without caching (focus on good code, avoid logic etc..., least db queries as possible)
- anything that takes longer than 100ms to process I use async processing to handle it.