Re: Re: Stranger than fiction - EXPLAIN results

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: Re: Stranger than fiction - EXPLAIN results
Дата
Msg-id m34rv3o82p.fsf@belphigor.mcnaught.org
обсуждение исходный текст
Ответ на Stranger than fiction...  (Fran Fabrizio <ffabrizio@exchange.webmd.net>)
Список pgsql-general
Fran Fabrizio <ffabrizio@exchange.webmd.net> writes:


> Seq Scan on status s  (cost=0.00..9.04 rows=1 width=84)
>
> 010502.11:24:05.003  [3029] CommitTransactionCommand
>
> Which is incorrect because it should be using my index, shouldn't
> it?  Here is how I created my index:

If a table is small (you have ~200 rows in it, right?) a sequential
scan will usually win even when there is an index.  Enjoy your
improved query time and be happy.  ;)

-Doug
--
The rain man gave me two cures; he said jump right in,
The first was Texas medicine--the second was just railroad gin,
And like a fool I mixed them, and it strangled up my mind,
Now people just get uglier, and I got no sense of time...          --Dylan

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Serial Type
Следующее
От: Joel Burton
Дата:
Сообщение: RE: Joining more than 2 tables