Re: Slow delete/insert.
От
Joshua D. Drake
Тема
Re: Slow delete/insert.
Дата
Msg-id
44EC6D63.4020507@commandprompt.com
Ответ на
Slow delete/insert. (Thor Tall)
Список
Дерево обсуждения
Slow delete/insert. Thor Tall <tall_thor@yahoo.com>
Re: Slow delete/insert. "Joshua D. Drake" <jd@commandprompt.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/
В списке pgsql-admin по дате отправления