| От | Greg Smith |
|---|---|
| Тема | Re: PostgreSQL Write Performance |
| Дата | |
| Msg-id | 4B43BE74.5050800@2ndquadrant.com обсуждение исходный текст |
| Ответ на | Re: PostgreSQL Write Performance (Tim Uckun <timuckun@gmail.com>) |
| Список | pgsql-general |
Tim Uckun wrote: > Is there a command like COPY which will insert the data but skip all > triggers and optionally integrity checks. > Nope, skipping integrity checks is MySQL talk. When doing a bulk loading job, it may make sense to drop constraints and triggers though; there's more notes on this and related techniques at http://www.postgresql.org/docs/current/interactive/populate.html Another thing you can do is defer your constraints: http://www.postgresql.org/docs/current/static/sql-set-constraints.html so that they execute in a more efficient block. -- Greg Smith 2ndQuadrant Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера