Re: schema/db design wrt performance - Mailing list pgsql-performance

From Ron Johnson
Subject Re: schema/db design wrt performance
Date
Msg-id 1042732204.892.35.camel@haggis
Whole thread Raw
In response to Re: schema/db design wrt performance  (Andrew Sullivan <andrew@libertyrms.info>)
Responses Re: schema/db design wrt performance
Re: schema/db design wrt performance
List pgsql-performance
On Thu, 2003-01-16 at 09:39, Andrew Sullivan wrote:
> On Thu, Jan 16, 2003 at 08:34:38AM -0600, Ron Johnson wrote:
> > On Thu, 2003-01-16 at 08:20, Andrew Sullivan wrote:
>
> > > If a user has multiple connections and charges things to the same
> > > account in more than one connection at the same time, the
> > > transactions will have to be processed, effectively, in series: each
> > > one will have to wait for another to commit in order to complete.
> >
> > This is true even though the default transaction mode is
> > READ COMMITTED?
>
> Yes.  Remember, _both_ of these are doing SELECT. . .FOR UPDATE.
> Which means they both try to lock the corresponding record.  But they
> can't _both_ lock the same record; that's what the lock prevents.

Could BEFORE INSERT|UPDATE|DELETE triggers perform the same
functionality while touching only the desired records, thus
decreasing conflict?

--
+------------------------------------------------------------+
| Ron Johnson, Jr.     mailto:ron.l.johnson@cox.net          |
| Jefferson, LA  USA   http://members.cox.net/ron.l.johnson  |
|                                                            |
| "Basically, I got on the plane with a bomb. Basically, I   |
|  tried to ignite it. Basically, yeah, I intended to damage |
|  the plane."                                               |
|    RICHARD REID, who tried to blow up American Airlines    |
|                  Flight 63                                 |
+------------------------------------------------------------+


pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: 7.3.1 New install, large queries are slow
Next
From: "Charles H. Woloszynski"
Date:
Subject: Re: 7.3.1 New install, large queries are slow