Schema's vs Single Database with prefix on tables

From: Joao Ribeiro <joao(dot)ribeiro(at)foursource(dot)pt>
To: pgsql-admin(at)postgresql(dot)org
Subject: Schema's vs Single Database with prefix on tables
Date: 2018-09-09 10:39:51
Message-ID: 30A5D829-58E2-4934-9C93-25968D05183B@foursource.pt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello,

We are using Postgres and we are with a issue. We have splited our tables by domain and each domain has a separated database, but we are trying to change it to a single database model. We have two options, create the same database in a single schema and add a prefix on each database domain or create a schema for each database (we have about 15 different models). In this approach we still want to do some joins and other queries cross schema, but we don’t know what would be the best approach :) Could you help us to know what would be the best approach ?

* having just one database with one schema and all domain databases with a prefix
* having a schema for each domain (15 domains) with the domain databases (+/ 20 tables) (knowing that we do cross schema queries)

_____

Best regards,

João Ribeiro
joao(dot)ribeiro(at)foursource(dot)pt

www.foursource.com <http://www.foursource.com/>

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Poul Kristensen 2018-09-09 20:28:58 Re: Postgresql jdbc driver for PG version 9.5
Previous Message Erwin Fritz 2018-09-07 15:16:42 Unable to query information_schema.constraint_column_usage