Database Performance Optimization and Scaling in Rails
It goes without saying that there are a lot of things one would do prior to some of these steps. Because of the complexity these sort of configuration bring into your app one should weigh carefully whether they need these approaches. Database tuning and caching are preferable first steps in an app faced with performance challenges before fancy database routing. As with caching the app awareness of these approaches leaks into your code and can introduce testing challenges and misses in your process.
ohbarye.icon 確かにDBレイヤでの複雑性を増やすよりかはアプリケーションでのチューニングやキャッシュで負荷を軽減できるならした方が良い