Re: UPDATE - Mailing list pgsql-general

From Craig Ringer
Subject Re: UPDATE
Date
Msg-id 499D7559.1060904@postnewspapers.com.au
Whole thread Raw
In response to UPDATE  (c k <shreeseva.learning@gmail.com>)
List 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

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: \l of psql 8.4 looks ... unreadable on 80char default
Next
From: Craig Ringer
Date:
Subject: Re: UPDATE