Re: Load experimentation

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Ben Brehmer <benbrehmer(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org, Thom Brown <thombrown(at)gmail(dot)com>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, craig_james(at)emolecules(dot)com, kbuckham(at)applocation(dot)net, scott(dot)lists(at)enterprisedb(dot)com
Subject: Re: Load experimentation
Date: 2009-12-07 20:59:29
Message-ID: 4B1D6CB1.3090909@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Ben Brehmer wrote:
> By "Loading data" I am implying: "psql -U postgres -d somedatabase -f
> sql_file.sql". The sql_file.sql contains table creates and insert
> statements. There are no indexes present nor created during the load.
> COPY command: Unfortunately I'm stuck with INSERTS due to the nature
> this data was generated (Hadoop/MapReduce).
Your basic options here are to batch the INSERTs into bigger chunks,
and/or to split your data file up so that it can be loaded by more than
one process at a time. There's some comments and links to more guidance
here at http://wiki.postgresql.org/wiki/Bulk_Loading_and_Restores

--
Greg Smith 2ndQuadrant Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com www.2ndQuadrant.com

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Smith 2009-12-07 21:17:25 Re: RAID card recommendation
Previous Message Alan Hodgson 2009-12-07 19:48:40 Re: Load experimentation