Re: table size/record limit

From: David Helgason <david(at)uti(dot)is>
To: Dennis Gearon <gearond(at)fireserve(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: table size/record limit
Date: 2004-10-21 14:21:18
Message-ID: 7958F3F2-236C-11D9-B108-000A9566DA8A@uti.is
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 21. okt 2004, at 01:30, Dennis Gearon wrote:

> I am designing something that may be the size of yahoo, google, ebay,
> etc.

Grrr. Geek wet-dream.

> Just ONE many to many table could possibly have the following
> characteristics:
>
> 3,600,000,000 records
> each record is 9 fields of INT4/DATE

I don't do this myself (my data is only 3 gig, and most of that is in
blobs), but people have repeatedly reported such sizes on this list.

Check
http://archives.postgresql.org/pgsql-admin/2001-01/msg00188.php

... but the best you can do is just to try it out. With a few commands
in the 'pql' query tool you can easily populate a ridiculously large
database ("insert into foo select * from foo" a few times).

In few hours you'll have some feel of it.

> Other tables will have about 5 million records of about the same size.
>
> There are lots of scenarios here to lessson this.

What you'll have to worry about most is the access pattern, and update
frequency.

There's a lot of info out there. You may need any of the following:
• clustering, the 'slony' project seems to be popular around here.
• concurrency of updating
• connnection pooling, maybe via Apache or some java-thingey
• securing yourself from hardware errors

This list is a goldmine of discussions. Search the archives for
discussions and pointers. Search interfaces at

http://archives.postgresql.org/pgsql-general/
http://archives.postgresql.org/pgsql-admin/

.... or download the list archive mbox files into your mail-program and
use that (which is what I do).

d.
--
David Helgason,
Business Development et al.,
Over the Edge I/S (http://otee.dk)
Direct line +45 2620 0663
Main line +45 3264 5049

In response to

Browse pgsql-general by date

  From Date Subject
Next Message nd02tsk 2004-10-21 14:27:24 Information about storge engine in PostgreSQL
Previous Message Dan Sugalski 2004-10-21 14:14:38 Re: OS X Install