Re: Deferred constraint and delete performance - Mailing list pgsql-performance

From Віталій Тимчишин
Subject Re: Deferred constraint and delete performance
Date
Msg-id 331e40661002140145l610042d8pc27c61e6c23463df@mail.gmail.com
Whole thread Raw
In response to Re: Deferred constraint and delete performance  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance


2010/2/10 Tom Lane <tgl@sss.pgh.pa.us>
Franck Routier <franck.routier@axege.com> writes:
> I am wondering if deferring foreign key constraints (instead of
> disableing them) would increase performance, compared to non deferred
> constraints

No, it wouldn't make any noticeable difference AFAICS.  It would
postpone the work from end-of-statement to end-of-transaction,
but not make the work happen any more (or less) efficiently.

What about disc access? Won't "working" with one table, then another be faster than working with both at the same time?

pgsql-performance by date:

Previous
From: Pierre Frédéric Caillaud
Date:
Subject: Re: 512,600ms query becomes 7500ms... but why? Postgres 8.3 query planner quirk?
Next
From: Reydan Cankur
Date:
Subject: PostgreSQL on SMP Architectures