From: Andrew McMillan <andrew@catalyst.net.nz>
To: Michael Ryan S. Puncia <mpuncia@census.gov.ph>
Cc: pgsql-performance@postgresql.org
Subject: Re: DB Design
Date: Wed, 19 May 2004 23:21:22 +1200
Message-ID: <1084965682.10589.52.camel@lamb.mcmillan.net.nz> (raw)
In-Reply-To: <200405190724.i4J7NuPW030497@mail.census.gov.ph>
References: <200405190724.i4J7NuPW030497@mail.census.gov.ph>
On Wed, 2004-05-19 at 15:37 +0800, Michael Ryan S. Puncia wrote:
> Hi Guys,
>
>
>
> My question is .. which is better design
>
>
>
> 1. Single Table with 50 million records or
> 2. Multiple Table using inheritance to the parents table
It's not that simple.
Given your e-mail address I assume you want to store Philippines Census
data in such a table, but does Census data fit well in a single flat
table structure? Not from what I have seen here in NZ, but perhaps
Census is simpler there.
So to know what the best answer to that question is, people here will
surely need more and better information from you about database schema,
record size, indexing and query characteristics, and so on.
> I will use this only for query purpose ..
Then you may quite possibly want to consider a different database.
Particularly if it is single-user query purposes.
For example, there are some SQL databases that would load the entire
database into RAM from static files, and then allow query against this.
This can obviously give huge performance improvements in situations
where volatility is not a problem.
Cheers,
Andrew.
-------------------------------------------------------------------------
Andrew @ Catalyst .Net .NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7201 MOB: +64(21)635-694 OFFICE: +64(4)499-2267
Do not overtax your powers.
-------------------------------------------------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: andrew@catalyst.net.nz, mpuncia@census.gov.ph
Subject: Re: DB Design
In-Reply-To: <1084965682.10589.52.camel@lamb.mcmillan.net.nz>
References: <200405190724.i4J7NuPW030497@mail.census.gov.ph> <1084965682.10589.52.camel@lamb.mcmillan.net.nz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox