Re: psql vs perl prepared inserts

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql vs perl prepared inserts
Дата
Msg-id 799.1113344623@sss.pgh.pa.us
обсуждение исходный текст
Ответ на psql vs perl prepared inserts  (Matt Van Mater <matt.vanmater@gmail.com>)
Список pgsql-general
Matt Van Mater <matt.vanmater@gmail.com> writes:
> I've been experimenting with loading a large amount of data into a
> fairly simple database using both psql and perl prepared statements.
> Unfortunately I'm seeing no appreciable differences between the two
> methods, where I was under the impression that prepared statements
> should be much faster (in my case, they are slightly slower).

They should be faster ... if the client library is really using
server-side prepared statements, and not trying to fake it.  Up till
7.4 came out there wasn't any very useful way to use server-side
prepared statements in a driver, and I think only the very latest
version of DBD::Pg knows anything about it.  See this thread for
some recent discussion:
http://archives.postgresql.org/pgsql-interfaces/2005-04/msg00029.php

            regards, tom lane

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

Предыдущее
От: Matt Van Mater
Дата:
Сообщение: psql vs perl prepared inserts
Следующее
От: Paul Tillotson
Дата:
Сообщение: Re: What are the consequences of a bad database design