On Fri, Sep 30, 2016 at 10:16 AM, Rakesh Kumar <rakeshkumar464@xxxxxxxxxxx> wrote:
________________________________________
From: Venkata B Nagothi <nag1010@xxxxxxxxx>
Sent: Thursday, September 29, 2016 17:25
To: Rakesh Kumar
Cc: pgsql-general@xxxxxxxxxxxxxx
Subject: Re: Multi tenancy : schema vs databases
On Fri, Sep 30, 2016 at 5:18 AM, Rakesh Kumar <rakeshkumar464@xxxxxxxxxxx<mailto:rakeshkumar464@outlook. Yes. Say something like this within a PG clustercom >> wrote:
Hi
I would like to know which technique is better for supporting multi-tenancy=
applications, going upto hundreds or even thousands of tenants.
1 - One database with difference schemas (one schema per tenant)
or
2 - One database per tenant.
Did you mean one database with-in a postgresql cluster ?
db4978
db6234
...
100s of such databases.
That would make things worst if you are going for one database per tenant. As said by John just now, it would end up in an very complex and bad design contributing to very poor performance and high maintenance overhead.
A schema per tenant would be a good idea and its hard to say without knowing the data isolation levels you require for each tenant.
Regards,
Venkata B N
Database consultant / Architect