Re: improvement suggestions for performance design

Поиск
Список
Период
Сортировка
От Kalle Hallivuori
Тема Re: improvement suggestions for performance design
Дата
Msg-id c637d8bb0707080925u4cd0871dmced4458d19b10c1@mail.gmail.com
обсуждение исходный текст
Ответ на Re: improvement suggestions for performance design  (Thomas Finneid <tfinneid@student.matnat.uio.no>)
Ответы Re: improvement suggestions for performance design  (Thomas Finneid <tfinneid@student.matnat.uio.no>)
Список pgsql-performance
Hi.

2007/7/8, Thomas Finneid <tfinneid@student.matnat.uio.no>:
>
> Kalle Hallivuori wrote:
>
>  > COPY is plentitudes faster than INSERT:
>  > http://www.postgresql.org/docs/8.1/interactive/sql-copy.html
>  >
>  > If you can't just push the data straight into the final table with
>  > COPY, push it into a temporary table that you go through with the
>  > database procedure.
>  >
>  > Shameless plug: If you use Java and miss COPY functionality in the
>  > driver, it's available at
>  >
>  > http://kato.iki.fi/sw/db/postgresql/jdbc/copy/
>  >
>  > I was able to practically nullify time spent inserting with that.
>
> Interresting, I will definately have a look at it.
> What is the maturity level of the code at this point? and what is
> potentially missing to bring it up to production quality? (stability is
> of the utmost importance in my usage scenario.)

It's my third implementation, based on earlier work by Kris Jurka, a
maintainer of the JDBC driver. (It is really quite short so it's easy
to keep it clear.) I consider it mature enough to have accommodated it
as part of an upcoming large application, but I'd really like to hear
others' opinions. Documentation I should add one of these days, maybe
even rewrite the javadoc.

You can use COPY as is on the server side without the patch, but then
you need to get the data as CSV or TSV files onto the database server
machine, and use db superuser privileges to import it. My patch just
adds the ability to feed data from client with normal user privileges.

--
Kalle Hallivuori +358-41-5053073 http://korpiq.iki.fi/

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

Предыдущее
От: Thomas Finneid
Дата:
Сообщение: Re: improvement suggestions for performance design
Следующее
От: "Jignesh K. Shah"
Дата:
Сообщение: PostgreSQL publishes first real benchmark