Re: Help, 400 million rows, query slow, I stopped after 5 days - Mailing list pgsql-novice

From Christian Hofmann
Subject Re: Help, 400 million rows, query slow, I stopped after 5 days
Date
Msg-id 00c301c625c4$e2cbc2a0$9000a8c0@taschenrechner
Whole thread Raw
In response to Re: Help, 400 million rows, query slow, I stopped after 5 days  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
Hello Tom,

> work_mem and sort_mem are the same ... so looks like you
> already pushed
> it up.  Actually, maybe you pushed it up too far --- are you sure that
> the machine has 650M RAM available to spare?  On Unix I'd suggest
> watching free memory and swap activity to tell if it's too high, but
> I dunno how to tell on Windows.

Okay, maybe I set it to high. I will try to find that out.

Maybe I should run 26 queries like these:

INSERT INTO table2 (my_col) SELECT DISTINCT my_col from table1 where my_cole
like 'a%'

So postgresql could use my index on my_col and store more data in memory. Do
you think that would be better?

Thank you,

Christian



pgsql-novice by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Restoring SQL Databse for use in PostgreSQL.
Next
From: Lan Barnes
Date:
Subject: Upgrade to PG 8 before starting major development?