Understanding the output of EXPLAIN ANALYSE

Поиск
Список
Период
Сортировка
От Thurber, Fred
Тема Understanding the output of EXPLAIN ANALYSE
Дата
Msg-id 42FD6908B3553343B8957500E798AABD19B4D93F03@EXCHCCR04.ad.local
обсуждение исходный текст
Ответы Re: Understanding the output of EXPLAIN ANALYSE  (Greg Stark <gsstark@mit.edu>)
Re: Understanding the output of EXPLAIN ANALYSE  (Jaime Casanova <jcasanov@systemguards.com.ec>)
Список pgsql-novice
I am a newbie to PostgreSQL and am a little confused by the execution plan of a query we are working.  The SQL does some joins and the resulting plan looked like this:
 
"Nested Loop  (cost=78.63..101.14 rows=1 width=256) (actual time=0.000..16.000 rows=2818 loops=1)"
"Total runtime: 16.000 ms"
 
 
 
So the cost was 101.  We put indexes on the two tables that were being joined and re-ran EXPLAIN ANALYZE.  The cost went way down, but the execution time went way up.  What am I missing?
 
"Nested Loop  (cost=0.00..15.28 rows=1 width=256) (actual time=0.000..110.000 rows=2818 loops=1)"
"Total runtime: 110.000 ms"
 
 

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

Предыдущее
От: Christopher Browne
Дата:
Сообщение: Re: [Slony1-general] Question on Load balancing
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Understanding the output of EXPLAIN ANALYSE