From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-sql@postgresql.org
Subject: Re: Too much time to delete 19000 rows
Date: Fri, 6 Oct 2006 14:26:54 -0400
Message-ID: <20061006182654.GA11841@phlogiston.dyndns.org> (raw)
In-Reply-To: <55c095e90610061110t5a3040c3pec05bd2c413a85dd@mail.gmail.com>
References: <55c095e90610061110t5a3040c3pec05bd2c413a85dd@mail.gmail.com>
On Fri, Oct 06, 2006 at 03:10:01PM -0300, Ezequias Rodrigues da Rocha wrote:
>
> BEGIN WORK;
> delete from base.ticket where session_id = 17 and cash_id = 99 and promo_id
> = 5;
> COMMIT WORK;
Try putting EXPLAIN ANALYSE on the beginning to see what's going on.
That said. . .
> I just think it could be occuring becouse of many constraints (7 at all)
. . .it could be, yes. Are all the other tables &c. indexed
correctly? VACUUMed and ANALYSEd?
A
--
Andrew Sullivan | ajs@crankycanuck.ca
The whole tendency of modern prose is away from concreteness.
--George Orwell
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: ajs@crankycanuck.ca
Subject: Re: Too much time to delete 19000 rows
In-Reply-To: <20061006182654.GA11841@phlogiston.dyndns.org>
* 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