Re: hundreds of millions row dBs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: hundreds of millions row dBs
Дата
Msg-id 20464.1104874596@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: hundreds of millions row dBs  ("Dann Corbit" <DCorbit@connx.com>)
Ответы Re: hundreds of millions row dBs
Список pgsql-general
"Dann Corbit" <DCorbit@connx.com> writes:
> Here is an instance where a really big ram disk might be handy.
> You could create a database on a big ram disk and load it, then build
> the indexes.
> Then shut down the database and move it to hard disk.

Actually, if you have a RAM disk, just change the $PGDATA/base/nnn/pgsql_tmp
subdirectory into a symlink to some temp directory on the RAM disk.
Should get you pretty much all the win with no need to move stuff around
afterwards.

You have to be sure the RAM disk is bigger than your biggest index though.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: hundreds of millions row dBs
Следующее
От: Lonni J Friedman
Дата:
Сообщение: vacuum is failing