Re: Deleting large amount of data.

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Deleting large amount of data.
Дата
Msg-id 20020826124628.C64199-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Deleting large amount of data.  ("Vilson farias" <vilson.farias@digitro.com.br>)
Список pgsql-admin
On Mon, 26 Aug 2002, Vilson farias wrote:

> Greetings,
>
>     I'm having some perfomance problems related with large amount of
> tuples in a table, so I decided to start programming some shell
> scripts to be placed in crontad to remove old data every night.

Hmm, you might want to send some info on the schema/queries/explain
output, maybe someone'll be able to help.

>
>    Now, my questions are :
>
>   If I just execute a DELETE * FROM WHERE call_start < '2002-08-21'
> and call_start > '2002-08-20', and that interval has 100.000 tuples,
> does DELETE start and commit a transaction for every single deletion?

No.  It's all one statement, so it'll be in its containing transaction (if
you haven't started one, it'll be put into its own).


В списке pgsql-admin по дате отправления:

Предыдущее
От: "Vilson farias"
Дата:
Сообщение: Deleting large amount of data.
Следующее
От: Joe Conway
Дата:
Сообщение: Re: Preserving datatypes in dblink.