Re: Databases vs Schemas

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Scott Otis <scott(dot)otis(at)intand(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Databases vs Schemas
Date: 2009-10-09 21:02:20
Message-ID: b42b73150910091402o52b3ffcbw91757689b0f6578@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Fri, Oct 9, 2009 at 1:46 PM, Scott Otis <scott(dot)otis(at)intand(dot)com> wrote:
> Over the next couple of months we will be creating an instance of our solution for each public school district in the US which is around 18,000.  That means currently we would be creating 18,000 databases (all on one server right now – which is running 8.4).  I am assuming this is probably not the best way of doing things.

Schema advantages:
*) maintenance advantages; all functions/trigger functions can be
shared. HUGE help if you use them
*) can query shared data between schemas without major headaches
*) a bit more efficiency especially if private data areas are small.
kinda analogous to processes vs threads
*) Can manage the complete system without changing database sessions.
This is the kicker IMO.

Database Advantages:
*) More discrete. Easier to distinctly create, dump, drop, or move to
separate server
*) Smaller system catalogs might give efficiency benefits

merlin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message David Rees 2009-10-09 23:08:56 Re: disk I/O problems and Solutions
Previous Message Scott Marlowe 2009-10-09 19:22:57 Re: disk I/O problems and Solutions