Re: PostgreSQL Write Performance

Поиск
Список
Период
Сортировка
От Greg Smith
Тема Re: PostgreSQL Write Performance
Дата
Msg-id 4B42D4A8.3080504@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: PostgreSQL Write Performance  (Yan Cheng Cheok <yccheok@yahoo.com>)
Список pgsql-general
Yan Cheng Cheok wrote:
> Instead of sending 1000++ INSERT statements in one shot, which will requires my application to keep track on the
INSERTstatement. 
>
> Is it possible that I can tell PostgreSQL,
>
> "OK. I am sending you INSERT statement. But do not perform any actual right operation. Only perform actual write
operationwhen the pending statement had reached 1000" 
>

You can turn off synchronous_commit to get something like that:

http://www.postgresql.org/docs/current/static/runtime-config-wal.html

This should make your single-record INSERT time drop dramatically.  Note
that you'll be introducing a possibility of some data loss from the
latest insert(s) if the server crashes in this situation.

--
Greg Smith    2ndQuadrant   Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com  www.2ndQuadrant.com


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: timestams in the the pg_standby output
Следующее
От: "Dann Corbit"
Дата:
Сообщение: Re: PostgreSQL Write Performance