Best possible way to insert and get returned ids

Поиск
Список
Период
Сортировка
От Jason Dictos
Тема Best possible way to insert and get returned ids
Дата
Msg-id 65C6A498BB5BF245BD7195255041FA2E0278E9675F@bn-scl-be03.Cudanet.local
обсуждение исходный текст
Ответы Re: Best possible way to insert and get returned ids
Re: Best possible way to insert and get returned ids
Список pgsql-performance

Question:

 

Is an INSERT command with a SELECT statement in the RETURNING * parameter faster than say an INSERT and then a SELECT? Does the RETURNING * parameter simply amount to a normal SELECT command on the added rows? We need to basically insert a lot of rows as fast as possible, and get the ids that were added.  The number of rows we are inserting is dynamic and is not of fixed length.

 

Thanks,

-Jason

 

----------------------------------
Check out the Barracuda Spam & Virus Firewall - offering the fastest virus & malware protection in the industry: www.barracudanetworks.com/spam

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

Предыдущее
От: Lorenzo Allegrucci
Дата:
Сообщение: Re: [GENERAL] Strange performance degradation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Strange performance degradation