Every rails app with enough growth will eventually hit the point where the database can no longer be vertically scaled. Learn how to use sharding on UUIDs to grow beyond one database with ease.
ReadEveryone knows Ruby can be a memory hog, however, you can reduce memory consumption significantly by switching Ruby's default malloc (memory allocator) to Jemalloc.
Read