Thanks Craig for the useful information. On the same regard – Some of the mentioned modules in the mentioned application use a set of tables which is logically separate (there are no join statements
with tables of other modules). What are the pros\cons of using a separate database instead of a separate schema for maintaining such tables? I understand that resources are shared among multiple databases on the same cluster, so in terms of performance, are there resources that are dedicated for
each database and would benefit performance? I’d appreciate a best practice also regarding to using database vs schema. Hava From: Craig James [mailto:cjames@xxxxxxxxxxxxxx]
On Tue, Oct 2, 2012 at 11:54 AM, Babay Adi, Hava <hava.babay@xxxxxx> wrote: Dear list, I’m new to PostgreSQL, planning now a migration to PostgreSQL and would appreciate your help.
One aspect of the migration is re-thinking our DB structure. The application considered contains several modules (let’s say ten), each one uses and manages a small number of tables (maximum 10 tables per module). Today all tables are located
on the same DB, which makes management a bit uncomfortable. What comes to mind is grouping each module’s tables on a separate schema. From you experience, is there any performance impact for grouping tables into schemas? In general, what is the best practice
for grouping tables in schemas vs. locating several tables (that might be logically separated) into the same schema? Is there any advantage \ disadvantage of using schemas vs naming standards that includes prefix for each module’s tables? In the considered application there are no name duplications among tables. In addition, there are there are no queries that involve tables managed by different modules. In addition,
since all modules are owned by the same application, currently there is no interest in limiting access for tables (it is all or nothing).
|