pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Iain <iain@mst.co.jp>
To: jerome@gmanmi.tv
Cc: pgsql-general@postgresql.org
Subject: Re: [PERFORM] HELP speed up my Postgres
Date: Thu, 25 Nov 2004 15:40:57 +0900
Message-ID: <002001c4d2b9$bba0b230$7201a8c0@mst1x5r347kymb> (raw)
References: <200411251400.32752.jerome@gmanmi.tv>

> SQL:
> update SUBSCRIPTIONTABLE set ACTIVEFLAG='Y' where mobile_num in (select
> mobile_num from LOADED_MOBILE_NUMBERS)

Could you try using UPDATE ... FROM (SELECT ....) AS .. style syntax?

About 20 minutes ago, I changed a 8 minute update to an most instant by 
doing that.

regards
Iain 




view thread (9+ messages)  latest in thread

Message-ID: <002001c4d2b9$bba0b230$7201a8c0@mst1x5r347kymb>
Permalink:  ../002001c4d2b9$bba0b230$7201a8c0@mst1x5r347kymb/
Also on:    postgresql.org/message-id/002001c4d2b9$bba0b230$7201a8c0@mst1x5r347kymb

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: iain@mst.co.jp, jerome@gmanmi.tv, pgsql-general@postgresql.org
  Subject: Re: [PERFORM] HELP speed up my Postgres
  In-Reply-To: <002001c4d2b9$bba0b230$7201a8c0@mst1x5r347kymb>
  References: <200411251400.32752.jerome@gmanmi.tv> <002001c4d2b9$bba0b230$7201a8c0@mst1x5r347kymb>

* 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