Optimising inside transactions

Поиск
Список
Период
Сортировка
От John Taylor
Тема Optimising inside transactions
Дата
Msg-id 02061216072607.03223@splash.hq.jtresponse.co.uk
обсуждение исходный текст
Ответы Re: Optimising inside transactions
Re: Optimising inside transactions
Список pgsql-novice
Hi,

I'm running a transaction with about 1600 INSERTs.
Each INSERT involves a subselect.

I've noticed that if one of the INSERTs fails, the remaining INSERTs run in about
1/2 the time expected.

Is postgresql optimising the inserts, knowing that it will rollback at the end ?

If not, why do the queries run faster after the failure ?

Thanks
JohnT

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

Предыдущее
От: John Taylor
Дата:
Сообщение: How efficient are Views
Следующее
От: "Henshall, Stuart - WCP"
Дата:
Сообщение: Re: How efficient are Views