Best practices for data storage?

7 views
Skip to first unread message

Victor Rajewski

unread,
Oct 14, 2013, 6:12:03 PM10/14/13
to apps-marketplac...@googlegroups.com
Hi Folks,

I'm developing an app for the apps marketplace, but am unsure how best to segregate data between different domains. I can envisage:
  • keeping a single database, with a domain attribute in each of my models/tables
  • creating a separate database for each domain
  • creating a separate app instance for each domain
What are the pros and cons of each of these, and are there any other possibilities I've missed? In the latter two is it possible to automate the database or instance creation when a new domain joins?

I will be using python/django for the app.

Cheers,

Victor
Reply all
Reply to author
Forward
0 new messages