Re: Please recommend me the best bulk-delete option - Mailing list pgsql-general

From Tomas Vondra
Subject Re: Please recommend me the best bulk-delete option
Date
Msg-id b68ad0f5cb6c9e8ef305fe69f265e736.squirrel@sq.gransy.com
Whole thread Raw
In response to Re: Please recommend me the best bulk-delete option  ("David Johnston" <polobo@yahoo.com>)
List pgsql-general
On 17 Listopad 2011, 19:26, David Johnston wrote:
> Anyway, if you execute the three TRUNCATEs in the proper order, thus
> avoiding any kind of cascade, you should get maximum performance possible
> on your UNSUPPORTED VERSION of PostgreSQL.

AFAIK cascade with TRUNCATE means 'truncate the depending tables first'.
That's quite different from cascade with DELETE where the db has to
actually find the records, and I don't think there's a significant
performance impact.

Tomas


pgsql-general by date:

Previous
From: "Tomas Vondra"
Date:
Subject: Re: Please recommend me the best bulk-delete option
Next
From: Andy Colson
Date:
Subject: convert text field to utf8 in sql_ascii database