Re: Help, 400 million rows, query slow, I stopped after 5 days

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Help, 400 million rows, query slow, I stopped after 5 days
Дата
Msg-id 5535.1138635932@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Help, 400 million rows, query slow, I stopped after 5 days  ("Christian Hofmann" <christian.hofmann@gmx.de>)
Ответы Re: Help, 400 million rows, query slow, I stopped after 5 days
Список pgsql-novice
"Christian Hofmann" <christian.hofmann@gmx.de> writes:
> INSERT INTO table2 (my_col) SELECT DISTINCT my_col from table1
> But this query was so slow that I stopped it. I let it run for five days!

What PG version is this, and what do you have sort_mem set to?
Increasing sort_mem to a few hundred meg should help, assuming the
server can spare that much RAM.

> In the Server there is only 1 GB RAM. My_col is using a bitmap index.

There are no bitmap indexes in Postgres...

            regards, tom lane

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

Предыдущее
От: "Luis Silva"
Дата:
Сообщение: quering NULL values
Следующее
От: Charley Tiggs
Дата:
Сообщение: Re: quering NULL values