From: Jan Wieck <JanWieck@Yahoo.com>
To: josh@agliodbs.com
Cc: pgsql-performance@postgresql.org, David Parker <dparker@tazznetworks.com>
Subject: Re: sort_mem affect on inserts?
Date: Fri, 19 Nov 2004 09:34:14 -0500
Message-ID: <419E0466.9090409@Yahoo.com> (raw)
In-Reply-To: <200411171407.30795.josh@agliodbs.com>
References: <07FDEE0ED7455A48AC42AC2070EDFF7C26BA3D@corpsrv2.tazznetworks.com>
<200411171407.30795.josh@agliodbs.com>
On 11/17/2004 5:07 PM, Josh Berkus wrote:
> David,
>
>> I understand that the sort_mem conf setting affects queries with order by,
>> etc., and the doc mentions that it is used in create index. Does sort_mem
>> affect the updating of indexes, i.e., can the sort_mem setting affect the
>> performance of inserts?
>
> Only if the table has Foriegn Keys whose lookup might require a large sort.
> Otherwise, no.
>
Hmmm ... what type of foreign key lookup would that be? None of the RI
generated queries has any order by clause.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: JanWieck@Yahoo.com, josh@agliodbs.com, dparker@tazznetworks.com
Subject: Re: sort_mem affect on inserts?
In-Reply-To: <419E0466.9090409@Yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox