pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Klint Gore <kg@kgb.une.edu.au>
To: jerome@gmanmi.tv
Cc: pgsql-general@postgresql.org
Cc: pgsql-performance@postgresql.org
Subject: Re: [PERFORM] HELP speed up my Postgres
Date: Thu, 25 Nov 2004 18:08:30 +1100
Message-ID: <41A584EE111.0263KG@129.180.47.120> (raw)
In-Reply-To: <200411251400.32752.jerome@gmanmi.tv>
References: <200411251400.32752.jerome@gmanmi.tv>

On Thu, 25 Nov 2004 14:00:32 +0800, JM <jerome@gmanmi.tv> wrote:
> 		update SUBSCRIPTIONTABLE set ACTIVEFLAG='Y' where mobile_num in (select 
> mobile_num from LOADED_MOBILE_NUMBERS)

does loaded_mobile_numbers have a primary key or index on mobile_num?
same for subscriptiontable?
have you analyzed both tables?
is mobile_num the same type in both tables?

how does this query compare?
   update SUBSCRIPTIONTABLE set ACTIVEFLAG='Y' 
   from loaded_mobile_numbers
   where subscriptiontable.mobile_num = LOADED_MOBILE_NUMBERS.mobile_num

klint.

+---------------------------------------+-----------------+
: Klint Gore                            : "Non rhyming    :
: EMail   : kg@kgb.une.edu.au           :  slang - the    :
: Snail   : A.B.R.I.                    :  possibilities  :
: Mail      University of New England   :  are useless"   :
:           Armidale NSW 2351 Australia :     L.J.J.      :
: Fax     : +61 2 6772 5376             :                 :
+---------------------------------------+-----------------+



view thread (9+ messages)  latest in thread

Message-ID: <41A584EE111.0263KG@129.180.47.120>
Permalink:  ../41A584EE111.0263KG@129.180.47.120/
Also on:    postgresql.org/message-id/41A584EE111.0263KG@129.180.47.120

 · 

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-performance@postgresql.org
  Cc: kg@kgb.une.edu.au, jerome@gmanmi.tv, pgsql-general@postgresql.org
  Subject: Re: [PERFORM] HELP speed up my Postgres
  In-Reply-To: <41A584EE111.0263KG@129.180.47.120>

* 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