[PERFORM] Cost performace question

2009-07-10 Thread paulo matadr
Hi all have a dought about explain of postgres
Let's see:

Who have more cost for database:
Index Scan using xix3_movimento_roteiro_empresa on movimento_roteiro_empresa 
movimentor0_  (cost=0.00..73386.80 rows=5126 width=451)
  Index Cond: (mrem_ammovimento = 200906)
  Filter: ((ftgr_id = 26) AND ((mrem_icatualizarleitura IS NULL) OR 
(mrem_icatualizarleitura = 2)) AND (mrem_tmleitura IS NOT NULL))

or

Aggregate  (cost=26573.78..26573.79 rows=1 width=4)
  ->  Index Scan using xix4_movimento_roteiro_empresa on 
movimento_roteiro_empresa movimentor0_  (cost=0.00..26560.41 rows=5347 width=4)
Index Cond: ((ftgr_id = 26) AND (mrem_ammovimento = 200906))



Im confused about who is the most import (colour red ou blue).

thanks 


  

Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

Res: [PERFORM] Cost performace question

2009-07-10 Thread paulo matadr
thanks i understand now,  i have other dought
Index Scan using xix3_movimento_roteiro_empresa on movimento_roteiro_empresa 
movimentor0_  (cost=0.00..73386.80 rows=5126width=451)
what's this mean on red color above?







De: Kevin Grittner 
Para: pgsql-performance@postgresql.org; paulo matadr 
Enviadas: Sexta-feira, 10 de Julho de 2009 11:51:27
Assunto: Re: [PERFORM] Cost performace question

paulo matadr  wrote: 

> Im confused about who is the most import (colour red ou blue).

For the benefit of those without an easy way to view email in http,
the first cost number was in red, the second in blue.

The first number is the cost to retrieve the first row, the second
number is the cost to retrieve the full set of rows.  Usually I'm
paying more attention to the second number.

-Kevin

-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



  

Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com