pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedCREATING INDEX on column having null values
2+ messages / 2 participants
[nested] [flat]
* CREATING INDEX on column having null values
@ 2012-12-05 08:10 suhas.basavaraj12 <suhas.b@verse.in>
0 siblings, 1 reply; 2+ messages in thread
From: suhas.basavaraj12 @ 2012-12-05 08:10 UTC (permalink / raw)
To: pgsql-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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: CREATING INDEX on column having null values
@ 2012-12-05 08:47 Willem Leenen <willem_leenen@hotmail.com>
parent: suhas.basavaraj12 <suhas.b@verse.in>
0 siblings, 0 replies; 2+ messages in thread
From: Willem Leenen @ 2012-12-05 08:47 UTC (permalink / raw)
To: suhas.b@verse.in; pgsql-performance
Hello Suhas,
You need to supply good information for an accurate answer. Please have a look at this link:
http://wiki.postgresql.org/wiki/Slow_Query_Questions
Kind regards,
Willem
> Date: Wed, 5 Dec 2012 00:10:10 -0800
> From: suhas.b@verse.in
> To: pgsql-performance@postgresql.org
> Subject: [PERFORM] CREATING INDEX on column having null values
>
> 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
=
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2012-12-05 08:47 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-12-05 08:10 CREATING INDEX on column having null values suhas.basavaraj12 <suhas.b@verse.in>
2012-12-05 08:47 ` Willem Leenen <willem_leenen@hotmail.com>
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