From: | roopa perumalraja <roopabenzer(at)yahoo(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Performance problem |
Date: | 2006-10-13 05:13:48 |
Message-ID: | 20061013051348.65145.qmail@web50806.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I am new to postgres and I have 4 doubts.
1) I have a performance problem as I am trying to insert around 60 million rows to a table which is partitioned. So first I copied the .csv file which contains data, with COPY command to a temp table which was quick. It took only 15 to 20 minutes. Now I am inserting data from temp table to original table using insert into org_table (select * from temp_table); which is taking more than an hour & is still inserting. Is there an easy way to do this?
2) I want to increase the performance of database as I find it very slow which has more than 60 million rows in one table. I increased the shared_buffer parameter in postgres.conf file to 20000 but that does help much.
3) I have partitioned a parent table into 100 child tables so when I insert data to parent table, it automatically inserts to child table. I have followed http://www.postgresql.org/docs/8.1/interactive/ddl-partitioning.html. When I did this, I noticed that when I viewed data of parent table, it had the rows of the child table and is not empty. But the child tables do have the rows in it. I dont understand.
4) I want to use materialized views, I dont understand it from http://jonathangardner.net/PostgreSQL/materialized_views/matviews.html, can anyone explain me with a simple example.
Thanks in advance.
Regards
Roopa
---------------------------------
Get your email and more, right on the new Yahoo.com
From | Date | Subject | |
---|---|---|---|
Next Message | Bill Eaton | 2006-10-13 05:13:59 | Re: user defined aggregate with multiple arguments |
Previous Message | A. Kretschmer | 2006-10-13 04:58:44 | Re: bad error message |