Reputation: 63
I need to create a big database where I've a lot of user end every user can store a million of row in a DB, My question is, I can make (In rails) one system where every user have a own DB ? for example one general DB where i can store the user and a lot of db where the user can store the data, or isn't good for the speed of my rails app ?
Upvotes: 1
Views: 139
Reputation: 636
You can use Postgre Schemas for each user. http://www.postgresql.org/docs/9.0/static/ddl-schemas.html
Here's some approaches on this gem: https://github.com/influitive/apartment
Upvotes: 2