Re: Performance on inserts

Поиск
Список
Период
Сортировка
От Chris
Тема Re: Performance on inserts
Дата
Msg-id 39A9A035.75EF299F@nimrod.itg.telecom.com.au
обсуждение исходный текст
Ответ на Re: Performance on inserts  (Matthew Kirkwood <matthew@hairy.beasts.org>)
Список pgsql-hackers
Matthew Kirkwood wrote:
> 
> On Sat, 26 Aug 2000, Jules Bean wrote:
> 
> > Is there any simple way for Pg to combine inserts into one bulk?
> > Specifically, their effect on the index files.  It has always seemed
> > to me to be one of the (many) glaring flaws in SQL that the INSERT
> > statement only takes one row at a time.
> 
> One of MySQL's little syntax abuses allows:
> 
> INSERT INTO tab (col1, ..) VALUES (val1, ..), (val2, ..);

Wouldn't....

INSERT INTO tab (col1, ..); INSERT INTO tab VALUES (val1, ..); INSERT
INTO tab (val2, ..);

also avoid a database round trip??


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Mitch Vincent"
Дата:
Сообщение: Re: [SQL] queries and inserts
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: Too many open files (was Re: spinlock problems reported earlier)