From: Jim Nasby <jnasby@pervasive.com>
To: sebaioni-postgresql@yahoo.com.ar
Cc: Performance PostgreSQL <pgsql-performance@postgresql.org>
Subject: Re: Inner Join of the same table
Date: Tue, 15 Aug 2006 14:27:49 -0500
Message-ID: <165A9949-55BC-4BFC-9CEF-4F54B23731BE@pervasive.com> (raw)
In-Reply-To: <20060815185335.14227.qmail@web36114.mail.mud.yahoo.com>
References: <20060815185335.14227.qmail@web36114.mail.mud.yahoo.com>
On Aug 15, 2006, at 1:53 PM, Sebastián Baioni wrote:
> 9 -> Index Scan using uesapt001 on
> APORTES (cost=0.00..37301678.64
> rows=9339331 width=25) (actual time=110.000..2520690.000
> rows=9335892 loops=1)
It's taking 2520 seconds to scan an index with 9M rows, which sounds
way, way too slow. I suspect that index got bloated badly at some
point by not vacuuming frequently enough (autovacuum is your friend).
Try reindexing and see if that fixes the problem.
--
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
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-performance@postgresql.org
Cc: jnasby@pervasive.com, sebaioni-postgresql@yahoo.com.ar
Subject: Re: Inner Join of the same table
In-Reply-To: <165A9949-55BC-4BFC-9CEF-4F54B23731BE@pervasive.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