Re: Table partitioning for maximum speed?

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Table partitioning for maximum speed?
Дата
Msg-id 20031009190157.GA14336@wolff.to
обсуждение исходный текст
Ответ на Table partitioning for maximum speed?  (Jeff Boes <jboes@nexcerpt.com>)
Список pgsql-general
On Thu, Oct 09, 2003 at 18:37:19 +0000,
  Jeff Boes <jboes@nexcerpt.com> wrote:
> I'm sure this is a concept that's been explored here. I have a table
> (fairly simple, just two columns, one of which is a 32-digit checksum)
> with several million rows (currently, about 7 million). About a million
> times a day we do
>
>   select * from my_table where md5 = ?
>
> to verify presence or absence of the row, and base further processing on
> that information.
>
> The idea bandied about now is to partition this table into 16 (or 256,
> or ...) chunks by first digit (or 2, or ...). In the simplest case, this
> would mean:

If there is an index on the checksum column, then you shouldn't get
much of a speed up by partitioning the data.
If you don't have an index on the checksum, it sounds like you should.

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

Предыдущее
От: "Marek Lewczuk"
Дата:
Сообщение: SQL query problem
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: [SQL] SQL query problem