Re: Re: speed on Postgresql compared to Mysql

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: Joel Burton <jburton(at)scw(dot)org>
Cc: Livio Righetti <livio(dot)righetti(at)mcnet(dot)ch>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Re: speed on Postgresql compared to Mysql
Date: 2001-04-08 17:42:32
Message-ID: Pine.BSF.4.33.0104081441510.81918-100000@mobile.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


In addition, what are your startup options, and what version of PostgreSQL
are you using?

On Sun, 8 Apr 2001, Joel Burton wrote:

> On Tue, 3 Apr 2001, Livio Righetti wrote:
>
> > Hi,
> >
> > Talking about insert, I know Mysql is fast than Postgresql.
> >
> > I've made the following test :
> >
> > 40'000 insert (accouting context) using Perl and dbd :
> >
> > Postgresql :
> > text : 4 min 53 s
> > varchar : 4 min 49 s
> > char : 4 min 49 s
> >
> > Mysql :
> > text : 0 min 29 s
> > varchar : 0 min 29 s
> > char : 0 min 29 s
> >
> > So we can see Mysql is about 10 times fast.
> >
> > Also we used Postgresql for Radius (authentication) et we have to make 3
> > vacuum per day otherwise the first server is overload and the user go to the
> > backup server.
> >
> > Is it normal or my Postgresql is not well configured ?
>
> Err, yes.
>
> Did you just do 40,000 inserts in a row, one after another? Realistic
> speed tests often have many requests coming in together, to simulate
> application- and web-usage.
>
> In addition, did you wrap this in a transaction? Otherwise, you're
> performing one transaction for *every single* insert, which is much slower
> than in a a transaction.
>
> (Generally speaking, if you want to just add 40,000 rows to a table, I'd
> use COPY, not INSERT ;-) )
>
> HTH,
>
> --
> Joel Burton <jburton(at)scw(dot)org>
> Director of Information Systems, Support Center of Washington
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mitch Vincent 2001-04-08 19:58:37 Re: converting from php3 to php4
Previous Message Bruce Momjian 2001-04-08 17:39:20 Re: converting from php3 to php4