| От | Craig A. James |
|---|---|
| Тема | Re: Best COPY Performance |
| Дата | |
| Msg-id | 453F963E.4010206@modgraph-usa.com обсуждение исходный текст |
| Ответ на | Re: Best COPY Performance ("Jim C. Nasby" <jim@nasby.net>) |
| Список | pgsql-performance |
Jim C. Nasby wrote: > Wait... so you're using perl to copy data between two tables? And using > a cursor to boot? I can't think of any way that could be more > inefficient... > > What's wrong with a plain old INSERT INTO ... SELECT? Or if you really > need to break it into multiple transaction blocks, at least don't > shuffle the data from the database into perl and then back into the > database; do an INSERT INTO ... SELECT with that same where clause. The data are on two different computers, and I do processing of the data as it passes through the application. Otherwise,the INSERT INTO ... SELECT is my first choice. Craig
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера