From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | guoping(dot)zhang(at)nec(dot)com(dot)au |
Cc: | "'Simon Riggs'" <simon(at)2ndquadrant(dot)com>, pgsql-performance(at)postgresql(dot)org, "'Guoping Zhang (E-mail)'" <guopingz(at)nstc(dot)nec(dot)com(dot)au> |
Subject: | Re: how unsafe (or worst scenarios) when setting fsync |
Date: | 2006-04-28 05:05:48 |
Message-ID: | 25360.1146200748@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
"Guoping Zhang" <guoping(dot)zhang(at)nec(dot)com(dot)au> writes:
> But altering the commit_delay from 1 to 100000, I observed that there is no
> time difference for the operation. Why is that? As our tests consists of
> 10000 small transactions which completed in 66 seconds, that is, about 160
> transactions per second. When commit_delay set to 100000 (i.e., 0.1 second),
> that in theory, shall group around 16 transactions into one commit, but
> result is same from the repeated test. Am I mistaken something here?
commit_delay can only help if there are multiple clients issuing
transactions concurrently, so that there are multiple commits pending at
the same instant. If you are issuing one serial stream of transactions,
it's useless.
If you do have multiple active clients, then we need to look more closely;
but your statement does not indicate that.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Guoping Zhang | 2006-04-28 05:18:08 | Re: how unsafe (or worst scenarios) when setting fsync OFF for postgresql |
Previous Message | Guoping Zhang | 2006-04-28 05:01:17 | Re: how unsafe (or worst scenarios) when setting fsync |