From: suhas.basavaraj12 <suhas.b@verse.in>
To: pgsql-performance@postgresql.org
Subject: CREATING INDEX on column having null values
Date: Wed, 5 Dec 2012 00:10:10 -0800 (PST)
Message-ID: <1354695010903-5735127.post@n5.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
Hi,
I have a partitioned table(partitioned on date) .There are about 1 million
insertions per day. There is a column called mess_id. This column is updated
.But update query is taking huge time.When i checked , this column is not
unique, and most of the time its having null . Say everyday out of 1
million only 20K rows are not null for this column ;.Insertions are
happening very fast , but update is very slow.
How to optimize my update query? Is it good to create index on that
column .. i m worried about my insertions getting slow
Rgrds
Suhas
--
View this message in context: http://postgresql.1045698.n5.nabble.com/CREATING-INDEX-on-column-having-null-values-tp5735127.html
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
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: suhas.b@verse.in
Subject: Re: CREATING INDEX on column having null values
In-Reply-To: <1354695010903-5735127.post@n5.nabble.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