Re: Query precompilation?

From: Robert Schrem <Robert(dot)Schrem(at)WiredMinds(dot)de>
To: Steffen Emil Thorkildsen <steffent(at)ifi(dot)uio(dot)no>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Query precompilation?
Date: 2001-02-27 13:11:04
Message-ID: 01022714162500.09116@pc-robert
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Tue, 27 Feb 2001, you wrote:
> Hi,
>
> I have an application which has an queue of data it has to insert into
> a table in a local database. the insert-queries syntax is all the same,
> and the values are the only thing that differs. The insert-query looks
> like this:
>
> INSERT INTO "table" VALUES(a, b, c, d, e, f, g, h)
>
> ...but I cannot insert more than 200/sec, and that is much too slow for
> mme. Are there ways to precompile a sqlquery or do other tricks to get the
> *fastest* insertion-rate, since the data-queue is growing faster than
> 200/sec...

> I don't care about integrity etc!

You should !-)

You can find some valueable tips in the documentation:
http://www.de.postgresql.org/users-lounge/docs/7.0/user/c4929.htm

> I'm using PostgreSQL 7.0.3, RH 6.2 Linux 2.2.4, and the pq library with
> gcc.
>
>
> Regards,
>
> Steffen E. Thorkildsen
>
> (PS! Please reply to my e-mail aswell.)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John Madden 2001-02-27 13:54:57 Re: Can PostgreSQL be a mail backend?
Previous Message Emmanuel Charpentier 2001-02-27 12:42:57 Re: Slowdown problem when writing 1.7million records

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 2001-02-27 14:31:35 Re: [PATCHES] A patch for xlog.c
Previous Message The Hermit Hacker 2001-02-27 12:28:43 Re[4]: Re: [PATCHES] A patch for xlog.c