From: Pavel Stehule <pavel.stehule@gmail.com>
To: chester c young <chestercyoung@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: best performance for simple dml
Date: Mon, 27 Jun 2011 08:35:19 +0200
Message-ID: <BANLkTimcokKM=MTAu1-kZFPsNGW8Lgj3rw@mail.gmail.com> (raw)
In-Reply-To: <333801.29762.qm@web161424.mail.bf1.yahoo.com>
References: <333801.29762.qm@web161424.mail.bf1.yahoo.com>
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
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: pavel.stehule@gmail.com, chestercyoung@yahoo.com
Subject: Re: best performance for simple dml
In-Reply-To: <BANLkTimcokKM=MTAu1-kZFPsNGW8Lgj3rw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox