| От | Joe Koenig |
|---|---|
| Тема | Understanding Transactions |
| Дата | |
| Msg-id | 3C17940F.DBFC66B1@jwebmedia.com обсуждение исходный текст |
| Ответы |
Re: Understanding Transactions
Re: Understanding Transactions |
| Список | pgsql-general |
I've been reading through the archive and I see that when doing a large amount of inserts it is much faster to wrap a bunch of them in a transaction. But here's my question. Say I need to do about 100,000 inserts and using COPY isn't an option. Is postgres going to do the inserts faster in groups of 1,000 or 5,000? I know that letting each insert be in its own transaction creates a lot of overhead, but I didn't know if putting 5,000 inserts into a transaction created overhead for that transaction. Hopefully my question makes sense. Thanks, Joe
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера