Re: Questions regarding indexes

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Questions regarding indexes
Дата
Msg-id dcc563d10901161139m1b0aa20aw8466304db37e0c@mail.gmail.com
обсуждение исходный текст
Ответ на Questions regarding indexes  (Bruno Lavoie <bruno.lavoie@gmail.com>)
Список pgsql-general
On Fri, Jan 16, 2009 at 8:47 AM, Bruno Lavoie <bruno.lavoie@gmail.com> wrote:
> Hello,
>
> are these statements true:
>
> «You should always index fks. The only exception is when the matching unique
> or primary key is never updated or deleted» ?

No.  If the table that fks to another table has 10 rows and will never
have more than a few hundred, why index it?

> «Small tables do not require indexes» ?

Usually true, except for unique indexes, which provide more
functionality than just indexing.

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Query sometimes takes down server
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Questions regarding indexes