Re: best performance for simple dml

Поиск
Список
Период
Сортировка
От chester c young
Тема Re: best performance for simple dml
Дата
Msg-id 576786.8402.qm@web161422.mail.bf1.yahoo.com
обсуждение исходный текст
Ответ на Re: best performance for simple dml  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: best performance for simple dml  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-sql
two questions:

I thought copy was for multiple rows - is its setup cost effective for one row?

copy would also only be good for insert or select, not update - is this right?

--- On Mon, 6/27/11, Pavel Stehule <pavel.stehule@gmail.com> wrote:

From: Pavel Stehule <pavel.stehule@gmail.com>
Subject: Re: [SQL] best performance for simple dml
To: "chester c young" <chestercyoung@yahoo.com>
Cc: pgsql-sql@postgresql.org
Date: Monday, June 27, 2011, 12:35 AM

Hello

try it and you will see. Depends on network speed, hw speed. But the most fast is using a COPY API

http://www.postgresql.org/docs/9.0/interactive/libpq-copy.html

Regards

Pavel Stehule


2011/6/27 chester c young <chestercyoung@yahoo.com>
what is the best performance / best practices for frequently-used simple dml, for example, an insert

1. fast-interface

2. prepared statement calling "insert ..." with binary parameters

3. prepared statement calling "myfunc(..." with binary parameters; myfunc takes its arguments and performs an insert using them


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: best performance for simple dml
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: best performance for simple dml