| From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> | 
|---|---|
| To: | Matthew Peter <survivedsushi(at)yahoo(dot)com> | 
| Cc: | pgsql-general(at)postgresql(dot)org | 
| Subject: | Re: transaction toggling | 
| Date: | 2005-10-05 08:45:04 | 
| Message-ID: | 20051005084456.GB12206@svana.org | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general | 
On Wed, Oct 05, 2005 at 12:49:33AM -0700, Matthew Peter wrote:
> Does it even make a dent in the performance if a query
> is wrapped in a transaction instead of out? Such as a
> view counter, like...
> 
> update views = views + 1 where x = 1;?
All statements are within a transaction. The question is if it's one
started by you or one created just for that statement. So, no
difference.
Regular vacuum, that's the solution.
-- 
Martijn van Oosterhout   <kleptog(at)svana(dot)org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | han.holl | 2005-10-05 09:13:58 | Re: Or selection on index versus union | 
| Previous Message | Richard Huxton | 2005-10-05 08:42:44 | Re: transaction toggling |