Re: Table partitioning for maximum speed?

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Table partitioning for maximum speed?
Дата
Msg-id 20031010181028.GA30384@wolff.to
обсуждение исходный текст
Ответ на Re: Table partitioning for maximum speed?  (Jeff Boes <jboes@nexcerpt.com>)
Ответы Re: Table partitioning for maximum speed?
Re: Table partitioning for maximum speed?
Список pgsql-general
On Fri, Oct 10, 2003 at 13:40:17 -0400,
  Jeff Boes <jboes@nexcerpt.com> wrote:
>
> So, again: will front-loading the work by mapping the original query to
> 16 (or 256) different queries by examining the first digit save us
> anything? (My colleague who came up with this idea thinks so, since the
> calculation will be done on a box other than the database host, and even
> one disk access saved per query would outweigh the calculation.)

This could potentially save you some disk accesses. If the index is mostly
in cache now, you might not get a noticable benefit.

> Will having 15 (or 255) additional tables make the cache behave
> differently? Is there overhead associated with having another 15 (or
> 255) tables?

I am not sure whether or not you would use significantly more space
by having multiple tables.

The data format change suggested by someone else may be worth trying
as well. In addition to their suggestions, you might experiment with
keeping the hash in either 4 ints or 2 bigints. If you use bigints,
you could probably just use an index on one of the bigints and have
only a small chance of finding more than one row that matches.

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Table partitioning for maximum speed?
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: Interfaces that support cursors