Re: best performance for simple dml

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: chester c young <chestercyoung(at)yahoo(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: best performance for simple dml
Date: 2011-06-27 06:35:19
Message-ID: BANLkTimcokKM=MTAu1-kZFPsNGW8Lgj3rw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)yahoo(dot)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
>
>

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message chester c young 2011-06-27 06:48:29 Re: best performance for simple dml
Previous Message chester c young 2011-06-27 06:09:10 best performance for simple dml