From: | Willem Leenen <willem_leenen(at)hotmail(dot)com> |
---|---|
To: | <suhas(dot)b(at)verse(dot)in>, <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: CREATING INDEX on column having null values |
Date: | 2012-12-05 08:47:42 |
Message-ID: | DUB104-W2920D51C1E923A332B03C98F460@phx.gbl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(dot)b(at)verse(dot)in
> To: pgsql-performance(at)postgresql(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
From | Date | Subject | |
---|---|---|---|
Next Message | Patryk Sidzina | 2012-12-05 12:09:59 | Why is PostgreSQL 9.2 slower than 9.1 in my tests? |
Previous Message | suhas.basavaraj12 | 2012-12-05 08:10:10 | CREATING INDEX on column having null values |