| От | Zlatko Calusic |
|---|---|
| Тема | Re: Optimizing huge inserts/copy's |
| Дата | |
| Msg-id | 87pumqxurl.fsf@atlas.iskon.hr обсуждение |
| Ответ на | Re: Optimizing huge inserts/copy's (Stephan Szabo <sszabo@megazone23.bigpanda.com>) |
| Список | pgsql-sql |
Jie Liang <jliang@ipinc.com> writes: > Hi, there, > > I tried different ways, include vaccum table , ensure index works, it > still is as slow as ~100rows per minute. > PGFSYNC=no in postmaster.init? Well, this might be Debian Linux specific, pardon me if it is. I have just begun playing with Postgres. Still learning, myself. IOW, disable fsync after every statement and your OS will do much better work clustering writes. That means more inserts/sec for you. In one of my tests I was able to insert at ~1000/sec rate. Then I made an experiment, enabled pgfsync _and_ indexes. The inserting speed dropped to 10/sec. Very interesting. Regards, -- Zlatko
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера