Re: temporary table as a subset of an existing table and indexes

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: temporary table as a subset of an existing table and indexes
Дата
Msg-id AANLkTikZdnrDza+-OaDTi7fkB49EPWqbQLr7D15-MR3k@mail.gmail.com
обсуждение исходный текст
Ответ на temporary table as a subset of an existing table and indexes  (Matthieu Huin <matthieu.huin@wallix.com>)
Ответы Re: temporary table as a subset of an existing table and indexes  (Matthieu Huin <matthieu.huin@wallix.com>)
Список pgsql-general
On Mon, Nov 8, 2010 at 12:15 PM, Matthieu Huin <matthieu.huin@wallix.com> wrote:
> Greetings all,
>
> I am trying to optimize SELECT queries on a large table (10M rows and more)
> by using temporary tables that are subsets of my main table, thus narrowing
> the search space to a more manageable size.
> Is it possible to transfer indices (or at least use the information from
> existing indices) from the big table to its subset in a reasonable amount of
> time ?

Are you sure that the benefit of creating scratch tables is worth the
overhead?   Can you give explain/analyze of the query you are trying
to optimize?

merlin

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: finding the other statement causing a sharelock
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Full Vacuum/Reindex vs autovacuum