Re: Another weird one with an UPDATE

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Another weird one with an UPDATE
Дата
Msg-id 3F8ABEFB.4010107@joeconway.com
обсуждение исходный текст
Ответ на Re: Another weird one with an UPDATE  (David Griffiths <dgriffiths@boats.com>)
Список pgsql-performance
David Griffiths wrote:
> Yes, the query operates only on indexed columns (all numeric(10)'s).
>
>             Column             |            Type             |
> Modifiers
> -------------------------------+-----------------------------+--------------
> ---------------
>  user_account_id               | numeric(10,0)               | not null
> [snip]
> Indexes: user_account_pkey primary key btree (user_account_id),
> Foreign Key constraints: $1 FOREIGN KEY (lang_id) REFERENCES lang(lang_id)
> ON UPDATE NO ACTION ON DELETE NO ACTION,
>                          $2 FOREIGN KEY (source_id) REFERENCES
> source(source_id) ON UPDATE NO ACTION ON DELETE NO ACTION,
>                          $3 FOREIGN KEY (user_role_id) REFERENCES
> user_role(user_role_id) ON UPDATE NO ACTION ON DELETE NO ACTION

And what about commercial_entity.user_account_id. Is it indexed and what
is its data type (i.e. does it match numeric(10,0))?

Also, have you run VACUUM ANALYZE lately?

Joe


В списке pgsql-performance по дате отправления:

Предыдущее
От: Shridhar Daithankar
Дата:
Сообщение: Re: go for a script! / ex: PostgreSQL vs. MySQL
Следующее
От: James Rogers
Дата:
Сообщение: Re: One or more processor ?