From: Joshua D. Drake <jd@commandprompt.com>
To: Thor Tall <tall_thor@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Slow delete/insert.
Date: Wed, 23 Aug 2006 07:59:47 -0700
Message-ID: <44EC6D63.4020507@commandprompt.com> (raw)
In-Reply-To: <20060823143017.98255.qmail@web50301.mail.yahoo.com>
References: <20060823143017.98255.qmail@web50301.mail.yahoo.com>
> 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/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jd@commandprompt.com, tall_thor@yahoo.com
Subject: Re: Slow delete/insert.
In-Reply-To: <44EC6D63.4020507@commandprompt.com>
References: <20060823143017.98255.qmail@web50301.mail.yahoo.com> <44EC6D63.4020507@commandprompt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox