Re: Slow delete/insert.

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Thor Tall <tall_thor(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Slow delete/insert.
Date: 2006-08-23 14:59:47
Message-ID: 44EC6D63.4020507@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


> It takes 6 minutes to ingest the data with an empty
> database and 25 minutes (wall time) if all the data is
> already in the database.
> The processing is done as follows:
> 1. Start transaction
>
> 2. check if message is in table 1 and if so delete
> records from table 1(1 row),2(2 rows),3(30 rows),4(50
> rows).
>
> 3. split the message and insert the date in table 1(1
> row),2(2 rows),3(30 rows),4(50 rows)
>
> 4. end transaction

Put more inserts into a single transaction

>
> I need some suggestions so that I can ingest the data
> faster. with the same computer and disks. We are
> running redhat 7.2 on the server and I am using the c
> interface to write the data to the server.

What version of PostgreSQL?

Joshua D. Drake

>
> Thanks for any help,
> Thor.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>

--

=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message andre 2006-08-23 19:45:56 How to detect Postgres deadlocks?
Previous Message Tom Lane 2006-08-23 14:31:50 Re: Server Down problem