pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mischa <mischa_Sandberg@telus.net>
To: pgsql-sql@postgresql.org
Subject: Re: same question little different test MSSQL vrs Postgres
Date: Fri, 28 Jan 2005 21:58:54 -0800
Message-ID: <1106978334.41fb261e28ac2@webmail.telus.net> (raw)
In-Reply-To: <41F8043C.6080101@illusions.com>
References: <000901c5035a$3b619cc0$797ba8c0@jfradkin>
	<41F71AB4.5030208@illusions.com>
	<20050126210450.GA26734@wolff.to>
	<41F8043C.6080101@illusions.com>

Quoting Dennis Sacks <dennis@illusions.com>:
> Bruno Wolff III wrote:
> >On Tue, Jan 25, 2005 at 21:21:08 -0700,
> >  Dennis Sacks <dennis@illusions.com> wrote:
> >>One of the things you'll want to do regularly is run a "vacuum analyze". 
> >>You can read up on this in the postgresql docs. This is essential to the 
> >>indexes being used properly. At a bare minimum, after you import a large 
> >>amount of data, you'll want to run vacuum analyze.
> >
> Good point! Analyze after bulk inserts, vacuum analyze after 
> updates/deletes and inserts. :)

Hmmm ... in performance tests of bulk inserts into a table with six indexes, I
found that without vacuum analyze (rather than analyze), insertion slowed down
albeit something less than linearly. Table of 6M rows, about 3GB (including
index files).
This is 7.4.1 on SuSE Linux, RAID5 Xeon(sigh) 2.8GHz 4GB nothing else running.
The inserts were always done with an existing record check (LEFT JOIN ... WHERE
joinkey IS NULL).
-- 
"Dreams come true, not free."




view thread (19+ messages)

Message-ID: <1106978334.41fb261e28ac2@webmail.telus.net>
Permalink:  ../1106978334.41fb261e28ac2@webmail.telus.net/
Also on:    postgresql.org/message-id/1106978334.41fb261e28ac2@webmail.telus.net

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mischa_Sandberg@telus.net
  Subject: Re: same question little different test MSSQL vrs Postgres
  In-Reply-To: <1106978334.41fb261e28ac2@webmail.telus.net>

* 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