From: | "Rick Gigger" <rick(at)alpinenetworking(dot)com> |
---|---|
To: | "Alvaro Herrera Munoz" <alvherre(at)dcc(dot)uchile(dot)cl> |
Cc: | "Mike Mascari" <mascarm(at)mascari(dot)com>, "PgSQL General ML" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: performance problem |
Date: | 2003-11-20 21:12:32 |
Message-ID: | 01c601c3afab$0445d660$0700a8c0@trogdor |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
Ah, I didn't realize that you could just do an ANALYZE. I thought there was
only VACUUM ANALYZE but that can't run inside of a transaction.
Thanks,
rg
----- Original Message -----
From: "Alvaro Herrera Munoz" <alvherre(at)dcc(dot)uchile(dot)cl>
To: "Rick Gigger" <rick(at)alpinenetworking(dot)com>
Cc: "Mike Mascari" <mascarm(at)mascari(dot)com>; "PgSQL General ML"
<pgsql-general(at)postgresql(dot)org>
Sent: Thursday, November 20, 2003 2:06 PM
Subject: Re: [GENERAL] performance problem
On Thu, Nov 20, 2003 at 01:52:10PM -0700, Rick Gigger wrote:
> I worked around this by starting the transaction and inserting the 45,000
> rows and then killing it. The I removed the index and readded it which
> apparently gathered some stats and since there were all of the dead tuples
> in there from the failed transaction it now decided that it should use the
> index. I reran the script and this time it took 5 minutes again instead
of
> 1 1/2 hours.
Stats are not collected automatically. You should run ANALYZE after
importing your data. And it's probably faster to create the index after
the data is loaded, too.
--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
Y una voz del caos me habló y me dijo
"Sonríe y sé feliz, podría ser peor".
Y sonreí. Y fui feliz.
Y fue peor.
From | Date | Subject | |
---|---|---|---|
Next Message | Mike Mascari | 2003-11-20 21:13:19 | Re: performance problem |
Previous Message | Andrew Sullivan | 2003-11-20 21:11:46 | Re: performance problem |
From | Date | Subject | |
---|---|---|---|
Next Message | Claudio Lapidus | 2003-11-20 21:12:53 | rounding timestamp |
Previous Message | Andrew Sullivan | 2003-11-20 21:11:46 | Re: performance problem |