From: Chris Ruprecht <chrup999@yahoo.com>
To: Zhang, Anna <azhang@verisign.com>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: poor performance of loading data
Date: Wed, 19 Dec 2001 18:55:06 -0600
Message-ID: <p05101001b846e621b81d@[192.168.0.6]> (raw)
In-Reply-To: <5511D658682A7740BA295CCF1E1233A635A81E@VSVAPOSTAL2.prod.netsol.com>
References: <5511D658682A7740BA295CCF1E1233A635A81E@VSVAPOSTAL2.prod.netsol.com>
Anna,
At 12:57 -0500 12/19/2001, Zhang, Anna wrote:
>I just installed Postgres 7.1.3 on my Red Hat 7.2 linux box. We are doing
>research to see how postgres doing, I used copy utility to import data from
>a text file which contains 32 mils rows, it has been 26 hours passed, but
>still running. My question is how postgres handles such data loading? it
>commited every row? or commit point is adjustable? How? Does postgres
>provide direct load to disk files like oracle? Other ways to speed up? If
>loading performance can't be improved significantly, we have to go back to
>oracle. Anybody can help? Thanks!
Did you edit the PostGreSQL startup parameters? if not, you have a
very sluggish system. You should have an ample supply of shared
memory (2000 - 8000 blocks of 8K each). Also, do you have an index
defined on your table? If so, drop the index, load the records, then,
re-create the index(es) for the table. Speed will improve
tremendously for copy commands with no index to update. creating an
index for all 32M records is much faster than having to insert index
values.
You might find your file loaded in a fraction of the time is has used
already with these optimizations applied. Without knowing more
specifics, this is all I can recommend.
Best regards,
Chris
--
Chris Ruprecht
Network grunt and bit pusher extraordinaíre
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
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-admin@postgresql.org
Cc: chrup999@yahoo.com, azhang@verisign.com
Subject: Re: poor performance of loading data
In-Reply-To: <p05101001b846e621b81d@[192.168.0.6]>
References: <5511D658682A7740BA295CCF1E1233A635A81E@VSVAPOSTAL2.prod.netsol.com> <p05101001b846e621b81d@[192.168.0.6]>
* 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