Skip to content

Instantly share code, notes, and snippets.

@brandon-beacher
Created November 9, 2011 08:43
Show Gist options
  • Save brandon-beacher/1350866 to your computer and use it in GitHub Desktop.
Save brandon-beacher/1350866 to your computer and use it in GitHub Desktop.

Here at Highgroove we like a good challenge, and we love it when we can meet a challenge with a simple and elegant solution.

Recently we had a customer with a great problem to have - they had signed up lots of new customers - but were experiencing some growing pains.

You see - a typical Ruby on Rails app has one database. This customer's app had one database per customer.

Routine tasks like launching servers, deploying code, or migrating databases were taking much longer than normal because they had to be performed per customer instead of just once.

What this app needed instead was Multitenancy - a fancy word for combining the customers into one database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment