Re: Partition tables

From: Vick Khera <vivek(at)khera(dot)org>
To: Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Partition tables
Date: 2009-08-05 16:13:39
Message-ID: 2968dfd60908050913h2340935td6e3723518b54117@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Aug 3, 2009 at 10:51 AM, Michael
Gould<mgould(at)intermodalsoftwaresolutions(dot)net> wrote:
> The total size of our database with 5 years worth of data is about 3.4 gig.
> In the business we are in, we open about 5-7 new locations each year and
> close 2-3.  I was also thinking that if each partition was by location it
>

It seems to me it would be cheaper to populate the server with 8Gb of
RAM (or more) and be done with it. The effort you will expend to
partition and manage the partitions as locations come and go will be
worth far more than the cost of the RAM.

Once your DB is in the 100+GB range, then you may want to consider
paritioning, or perhaps using a schema per location, and for your few
global queries, make a view that encompasses all the schemas. Given
your rate of change, redefining the views will not be a major burden.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Esmonde 2009-08-05 16:22:26 PostGres Config to Authenticate against AD over LDAP
Previous Message Sam Mason 2009-08-05 15:16:46 Re: Does derby have an embedded Mode like Derby ?