Re: [HACKERS] Postgres Speed or lack thereof - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: [HACKERS] Postgres Speed or lack thereof
Date
Msg-id 19990118084836.A370@gmx.net
Whole thread Raw
In response to Postgres Speed or lack thereof  (John Holland <jholland@isr.umd.edu>)
List pgsql-hackers
On Sun, Jan 17, 1999 at 09:08:28PM -0500, John Holland wrote:
> I've been lurking on this list for a little while. I have just done a
> little tinkering with Postgres 6.4.2, comparing it to Oracle and mySQL on
> Linux. It would appear that just doing a lot of inserts (ie 40000) in a
> loop is enormously slower in Postgres in two ways that I tried it.
> One - using a loop in Java that makes a JDBC call to insert.
> Two- using plpgsql as a comparision to PL/SQL.

Did you use the '-F' option? I tried somethings similar from C and found
similar results when calling fsync() after each write. Once I used -F it was
way faster and comparable to Oracle.

> Perhaps these are bad techniques and a C based proc would do better?

Feel free to try src/interfaces/ecpg/test/perftest.c

Michael
-- 
Michael Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: Michael.Meskes@gmx.net          | Use PostgreSQL!


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: ecpg changes
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] I need a PostgreSQL vacation