Re: Performance woes relating to DISTINCT (I think)

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Performance woes relating to DISTINCT (I think)
Дата
Msg-id 20050929204900.GM30974@pervasive.com
обсуждение исходный текст
Ответ на Re: Performance woes relating to DISTINCT (I think)  (boinger <boinger@gmail.com>)
Список pgsql-general
On Tue, Sep 27, 2005 at 09:07:41AM -0500, boinger wrote:
>               ->  Index Scan using strafe_group on tasks_applied
> (cost=0.00..6.02 rows=1 width=22) (actual time=0.042..0.043 rows=0
> loops=1188)
>
>                     Index Cond: ((("outer".modcode)::text =
> (tasks_applied.modcode)::text) AND (tasks_applied.yearcode =
> "outer".yearcode) AND (tasks_applied.seid = 500001))
>
>                     Filter: (cid = 0)
>
> Total runtime: 80.764 ms

Compare that to the index scan it had to do before. Now that you gave
the database the exact info it needs to answer your real question, it
can use a much, much more selective index scan.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

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

Предыдущее
От: Vivek Khera
Дата:
Сообщение: Re: DBI/DBD::Pg mem. use goes exponential
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: [SQL] add column if doesn't exist (fwd)