Re: [HACKERS] Pg takes at least 2 hours to retrieve 7650 rows

Поиск
Список
Период
Сортировка
От José Soares
Тема Re: [HACKERS] Pg takes at least 2 hours to retrieve 7650 rows
Дата
Msg-id 37285B2C.47E5A353@sferacarta.com
обсуждение исходный текст
Ответ на Pg takes at least 2 hours to retrieve 7650 rows  (José Soares <jose@sferacarta.com>)
Список pgsql-hackers
Vadim Mikheev ha scritto:

> José Soares wrote:
> >
> > $ time psql -f  test.sql  2>/dev/null >/dev/null
> > SELECT movimentazioni.azienda
> > FROM movimentazioni,capi
> > where ((capi.matricola = movimentazioni.matricola )
> > and (capi.specie = movimentazioni.specie ) );
> >
> EXPLAIN ?
>

explain SELECT movimentazioni.azienda
FROM movimentazioni,capi
where ((capi.matricola = movimentazioni.matricola )
and (capi.specie = movimentazioni.specie ) );
NOTICE:  QUERY PLAN:

Hash Join  (cost=1221.38 size=2 width=60) ->  Seq Scan on movimentazioni  (cost=349.64 size=7565 width=36) ->  Hash
(cost=0.00size=0 width=0)       ->  Seq Scan on capi  (cost=335.55 size=7562 width=24)
 

EXPLAIN

>
> > $ time psql -f  test.sql  2>/dev/null >/dev/null
> > SELECT movimentazioni.azienda
> > FROM movimentazioni,capi
> > where (capi.specie = movimentazioni.specie )
> > and ((capi.matricola = movimentazioni.matricola ))
>
> EXPLAIN ?
>
> Vadim

explain SELECT movimentazioni.azienda
FROM movimentazioni,capi
where (capi.specie = movimentazioni.specie )
and ((capi.matricola = movimentazioni.matricola ));
NOTICE:  QUERY PLAN:

Hash Join  (cost=1221.38 size=2 width=60) ->  Seq Scan on movimentazioni  (cost=349.64 size=7565 width=36) ->  Hash
(cost=0.00size=0 width=0)       ->  Seq Scan on capi  (cost=335.55 size=7562 width=24)
 

EXPLAIN




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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Current Open Items
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Beta2?