From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
---|---|
To: | c k <shreeseva(dot)learning(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: UPDATE |
Date: | 2009-02-19 15:06:01 |
Message-ID: | 499D7559.1060904@postnewspapers.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
c k wrote:
> I am using PG on windows for development. While testing some queries I
> found that updates are much slower as compared to other database
> systems. (On avarage MySQL updates 4-5 times faster than PG in a single
> unique index on primary key) Why?
Is your MySQL instance using MyISAM tables, or InnoDB?
> Another thing that I noticed is when any single column in a table is
> updated and having no index many (in my case 7) indexes on different
> columns, It takes about 180-200 secs. But when any single column in a
> table is updated and having many (in my case 7) indexes on different
> columns, but does not have index on the column that is being updated, It
> takes about 800-900 secs. Why?
Perhaps you can show us some table definitions and queries with EXPLAIN
ANALYZE output? Your explanation is quite difficult to understand.
> What can be done for such updates to make them faster?
Faster disks :-P
--
Craig Ringer
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2009-02-19 15:18:46 | Re: UPDATE |
Previous Message | Bruce Momjian | 2009-02-19 15:03:35 | Re: \l of psql 8.4 looks ... unreadable on 80char default |