Re: index not scanned

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: index not scanned
Дата
Msg-id 20021027105657.GF5775@svana.org
обсуждение исходный текст
Ответ на index not scanned  ("Ben-Nes Michael" <miki@canaan.co.il>)
Список pgsql-general
On Sun, Oct 27, 2002 at 12:46:39PM +0200, Ben-Nes Michael wrote:
> Hi
>
> I add an Index to table that have only 30 rows.

...

> does the planner knows that the table is small and it will take more time to
> check the index then stright check ?

Yes.

> by the way, the table will get quite big in the future.

So add a few thousand more rows and try again. Don't forget to ANALYZE.
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> There are 10 kinds of people in the world, those that can do binary
> arithmetic and those that can't.

Вложения

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

Предыдущее
От: "Ben-Nes Michael"
Дата:
Сообщение: index not scanned
Следующее
От: Terry Yapt
Дата:
Сообщение: Operator to compare numeric and double precision