Re: UPDATE

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: UPDATE
Дата
Msg-id 499D7559.1060904@postnewspapers.com.au
обсуждение исходный текст
Ответ на UPDATE  (c k <shreeseva.learning@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: \l of psql 8.4 looks ... unreadable on 80char default
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: UPDATE