| От | Scara Maccai |
|---|---|
| Тема | batch inserts in python & libpq |
| Дата | |
| Msg-id | 510173.98513.qm@web24611.mail.ird.yahoo.com обсуждение |
| Ответы |
Re: batch inserts in python & libpq
R: batch inserts in python & libpq |
| Список | pgsql-general |
Hi all, using Java I'm able to get a 10000 inserts/sec on our server using batch updates (using preparedStatement.addBatch()). Using Python I can't get past 2000 inserts/sec, which is roughly the same performance of Java without addBatch. Is there a Python driver that uses the same protocol form of addBatch in Java? I even looked at the libpq to see, but I couldn't find any reference to batch updating... not even in the protocol specs.Sniffing the protocol I think I got that mainly the difference is in the round-trips to the server... but don't knowhow to tell the Python driver/libpq to do it "the Java way".
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера