From: Brett W. McCoy <bmccoy@lan2wan.com>
To: Jason Slagle <raistlin@tacorp.net>
Cc: Tim Perdue <perdue@raccoon.com>
Cc: D'Arcy J.M. Cain <darcy@druid.net>
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] Performance
Date: Tue, 9 Mar 1999 22:44:21 -0500 (EST)
Message-ID: <Pine.LNX.4.04.9903092242290.18400-100000@dragosani.lan2wan.com> (raw)
In-Reply-To: <Pine.LNX.4.03.9903092222480.27247-100000@tacorp.net>
On Tue, 9 Mar 1999, Jason Slagle wrote:
> What, if anything, are you using as an index.
>
> I have 1,400,000 entries (200MB) I'm inserting into a database. Radius
> detail files as a matter of fact. Apart from COPY taking forever to load
> that (probably due to my several indexes), it seems the select is VERY
> slow. Any tips?
I found that if you create an index before doing a bulk COPY, yes, it does
take forever to load, and the select is slow. What I did was drop the
indices built from the COPY and rebuild them. Speeded the selects up
significantly. So now I don't build any indices until after I load my
huge databases in.
Brett W. McCoy
http://www.lan2wan.com/~bmccoy/
-----------------------------------------------------------------------
That's what she said.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GAT dpu s:-- a C++++ UL++++$ P+ L+++ E W++ N+ o K- w--- O@ M@ !V PS+++
PE Y+ PGP- t++ 5- X+ R+@ tv b+++ DI+++ D+ G++ e>++ h+(---) r++ y++++
------END GEEK CODE BLOCK------
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-sql@postgresql.org
Cc: bmccoy@lan2wan.com, raistlin@tacorp.net, perdue@raccoon.com, darcy@druid.net, pgsql-sql@hub.org
Subject: Re: [SQL] Performance
In-Reply-To: <Pine.LNX.4.04.9903092242290.18400-100000@dragosani.lan2wan.com>
References: <Pine.LNX.4.03.9903092222480.27247-100000@tacorp.net> <Pine.LNX.4.04.9903092242290.18400-100000@dragosani.lan2wan.com>
* 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