Re: Sequence Scan vs. Index scan - Mailing list pgsql-performance

From Reimer
Subject Re: Sequence Scan vs. Index scan
Date
Msg-id 001a01c64d14$80f4a840$8b00000a@reimer
Whole thread Raw
In response to Sequence Scan vs. Index scan  (Fernando Lujan <fernando.lujan@mandic.com.br>)
Responses Re: Sequence Scan vs. Index scan  ("Alejandro D. Burne" <alejandro.dburne@gmail.com>)
List pgsql-performance
Fernando,

If you need to read all the table for example it would be better to read
only the data pages instead of read data and index pages.

Reimer

----- Original Message -----
From: "Fernando Lujan" <fernando.lujan@mandic.com.br>
To: <pgsql-performance@postgresql.org>
Sent: Tuesday, March 21, 2006 3:08 PM
Subject: [PERFORM] Sequence Scan vs. Index scan


> Hi guys,
>
> I'm trying to figure out when Sequence Scan is better than Index Scan. I
> just want to know this because I disabled the sequence scan in postgresql
> and receive a better result. :)
>
> Two tables.
>
> Table 1 (1 million rows )
> -----------
> id
> text
> table2_id
>
> Table 2 (300 thousand rows)
> ----------
> id
> text 2
>
> When I join these two tables I have a sequence_scan. :(
>
> Thanks in advance.
>
> Fernando Lujan
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>


pgsql-performance by date:

Previous
From: "Mikael Carneholm"
Date:
Subject: Re: Sequence Scan vs. Index scan
Next
From: PFC
Date:
Subject: Re: Best OS & Configuration for Dual Xeon w/4GB & Adaptec