Re: Re: speed on Postgresql compared to Mysql

Поиск
Список
Период
Сортировка
От The Hermit Hacker
Тема Re: Re: speed on Postgresql compared to Mysql
Дата
Msg-id Pine.BSF.4.33.0104081441510.81918-100000@mobile.hub.org
обсуждение исходный текст
Ответ на Re: speed on Postgresql compared to Mysql  (Joel Burton <jburton@scw.org>)
Список 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@scw.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@postgresql.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@hub.org           secondary: scrappy@{freebsd|postgresql}.org


В списке pgsql-general по дате отправления:

Предыдущее
От: "Culley Harrelson"
Дата:
Сообщение: Multi-key indexes
Следующее
От: "Mitch Vincent"
Дата:
Сообщение: Re: converting from php3 to php4