Re: Setup for large database - Mailing list pgsql-general

From Jim C. Nasby
Subject Re: Setup for large database
Date
Msg-id 20060421195536.GP49405@pervasive.com
Whole thread Raw
In response to Re: Setup for large database  (Vivek Khera <vivek@khera.org>)
List pgsql-general
On Fri, Apr 21, 2006 at 11:34:00AM -0400, Vivek Khera wrote:
> As for partitioning based on octet, you should look at your
> distribution of addresses and decide if it scatters the data evenly
> enough for you.

A much more important question: how will you be querying the data?

Partitioning is not a magic-bullet to performance, and when done
incorrectly it can end up hurting.

In this case, if the OP will be querying mostly on things that fit
within a class A, then partitioning on the first octet probably makes a
lot of sense. In fact, partitioning on the first two octets might make a
lot of sense, so long as there's very littly querying across partitions.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

pgsql-general by date:

Previous
From: "Brandon Metcalf"
Date:
Subject: Re: IDT timezone
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Setup for large database