Re: Performance comparison to psql.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Performance comparison to psql.
Дата
Msg-id 29358.1202252965@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Performance comparison to psql.  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
Kris Jurka <books@ejurka.com> writes:
> On Tue, 5 Feb 2008, Arie Ozarov wrote:
>> I understand that JDBC has some overhead (object translation,..) but didn't
>> think the difference would be that big. Do this numbers look correct (any
>> optimization suggestion?)

> The real cost is the protocol level overhead of INSERT vs COPY.

Also, if you were inserting only one row per INSERT command, there's a
significant statement startup/shutdown overhead in the server, even for
a prepared statement.  I don't see any reason to think that these
numbers are JDBC's fault --- it's just a fact of life that COPY is
a lot more efficient than a series of INSERTs.  (If it were not, we'd
hardly even bother having it.)

            regards, tom lane

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Performance comparison to psql.
Следующее
От: Arie Ozarov
Дата:
Сообщение: Re: Performance comparison to psql.