| От | Tom Lane |
|---|---|
| Тема | Re: Speed Question |
| Дата | |
| Msg-id | 25958.1040428225@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Speed Question ("scott.marlowe" <scott.marlowe@ihs.com>) |
| Список | pgsql-performance |
"scott.marlowe" <scott.marlowe@ihs.com> writes: > On Fri, 20 Dec 2002, Noah Silverman wrote: >> Issue #1: Speed of inserts is relatively slow. 100000 inserts is > Are you doing these in a transaction? If not, then try adding a > begin;end; pair around your inserts. i.e. > begin; > insert 100000 rows > end; Or use a COPY command instead of retail inserts. See also the tips at http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/populate.html > One is you might get some help from a multi-column index. Yes, I'd recommend a multi-column index when no single column is particularly selective. regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера