pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Rajesh Kumar Mallah <mallah@trade-india.com>
Cc: PostgResql SQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: deletions on master table takes for ever...
Date: Sat, 13 Apr 2002 07:57:08 -0700 (PDT)
Message-ID: <20020413075506.W84263-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <3CB8037E.B73F7F6D@trade-india.com>


On Sat, 13 Apr 2002, Rajesh Kumar Mallah wrote:

> Also i would like to tell that the are 8 tables linked to the master
> table
> email_bank so every deletetion on email_bank is eight deletions.
>
> do i need to create indexes on the slave tables also ?

You probably should since otherwise it's going to need to do sequential
scans of all those tables for each row being deleted.  That may or may not
be the bottleneck here, but it's worth doing.





view thread (2+ messages)

Message-ID: <20020413075506.W84263-100000@megazone23.bigpanda.com>
Permalink:  ../20020413075506.W84263-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20020413075506.W84263-100000@megazone23.bigpanda.com

 · 

reply

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-sql@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, mallah@trade-india.com
  Subject: Re: deletions on master table takes for ever...
  In-Reply-To: <20020413075506.W84263-100000@megazone23.bigpanda.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