Re: Table Partitioning and Rules

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Richard Huxton <dev(at)archonet(dot)com>, "Girish Bajaj" <gbajaj(at)tietronix(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Table Partitioning and Rules
Date: 2003-07-17 19:03:13
Message-ID: 200307171203.13134.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Girish,

> > Essentially Im trying to store a persons information in a table in the
> > database. Since we could have millions of people, with duplicates! Ive
> > decided we need to partition the table into segments where all people with
> > the LastName starting from A to G will be in one table. H-N will be in
> > another table and O-Z in the third. Ive created a VIEW that does a UNION
on
> > all the tables.

This sounds hideously inefficient and a management headache besides. I think
PostgreSQL will accept up to 2 billion rows in any one table, and splitting
stuff into 3 tables will not improve your performance ... quite the opposite.

Change your database design.

--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Scott Cain 2003-07-17 19:18:25 Re: OR vs UNION
Previous Message Josh Berkus 2003-07-17 19:00:18 Re: OR vs UNION