Re: postgres 8 performance

Поиск
Список
Период
Сортировка
Искать
От
Chris Mair
Тема
Re: postgres 8 performance
Дата
Msg-id
1094552879.5330.41.camel@dell
Ответ на
postgres 8 performance (Paramveer.Singh@trilogy.com)
Список
Дерево обсуждения
postgres 8 performance Paramveer.Singh@trilogy.com
Re: postgres 8 performance Chris Mair <list@1006.org>
Re: postgres 8 performance Paul Thomas <paul@tmsl.demon.co.uk>
Re: postgres 8 performance Pierre-Frédéric Caillaud<lists@boutiquenumerique.com>
Re: postgres 8 performance Devrim GUNDUZ <devrim@gunduz.org>

> I can't figure out what the problem is.
> The app using jdbc and the postmaster instance were running on the same
> comp so I can't believe that communication would make that big a hit on
> performance.

It's the query parsing that takes a lot of time.
You might want to look at prepared statements:
http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html

Also set autocommit to off and do a hundert or so inserts inside
one transaction, not one transaction for each insert.

Bye, Chris.


В списке pgsql-general по дате отправления
От: Pierre-Frédéric Caillaud
Дата:
Сообщение: Re: postgres 8 performance
От: David Garamond
Дата:
FAQ