Re: Reducing memory usage of insert into select operations? [Solved]
В списке pgsql-general по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: Reducing memory usage of insert into select operations? [Solved] |
| Дата | |
| Msg-id | 20080720000128.GD6409@alvh.no-ip.org обсуждение исходный текст |
| Ответ на | Re: Reducing memory usage of insert into select operations? [Solved] (Francisco Reyes <lists@stringsutils.com>) |
| Список | pgsql-general |
Francisco Reyes wrote: > I knew it sounded too good to be true. > 1- The trigger was not set in the master (ie nothing went to the children). > 2- The master had no index and no RI.. so it was a straight insert. > > I corrected (ie set the trigger in the master and RI in the children). > Has been running for 10 hours and has not finished. FWIW it tends to be faster to do the bulk load first and add the indexes and constraints later. (Though obviously you must be prepared to cope with the failing rows, if any). However, if you do this INSERT/SELECT thing frequently, this is probably not very workable. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера