pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedUltimate DB Server
16+ messages / 10 participants
[nested] [flat]
* Ultimate DB Server
@ 2001-10-28 17:07 ` Mike Rogers <temp6453@hotmail.com>
2001-10-28 17:36 ` Re: Ultimate DB Server Todd Williamsen <todd@williamsen.net>
1 sibling, 1 reply; 16+ messages in thread
From: Mike Rogers @ 2001-10-28 17:07 UTC (permalink / raw)
To: mysql@lists.mysql.com; pgsql-hackers@postgresql.org; pgsql-admin
I'm questioning whether anyone has done benchmarks on various hardware for
PGSQL and MySQL. I'm either thinking dual P3-866's, Dual AMD-1200's, etc.
I'm looking for benchmarks of large queries on striped -vs- non-striped
volumes, different processor speeds, etc.
Any thoughts people?
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
2001-10-28 17:07 ` Ultimate DB Server Mike Rogers <temp6453@hotmail.com>
@ 2001-10-28 17:36 ` Todd Williamsen <todd@williamsen.net>
0 siblings, 0 replies; 16+ messages in thread
From: Todd Williamsen @ 2001-10-28 17:36 UTC (permalink / raw)
To: 'Mike Rogers' <temp6453@hotmail.com>; mysql@lists.mysql.com; pgsql-hackers@postgresql.org; pgsql-admin
Ram plays a big factor in queries, most queries are stored in ram. Also
depends on which platform as well.
Thank you,
Todd Williamsen, MCSE
home: 847.265.4692
Cell: 847.867.9427
-----Original Message-----
From: Mike Rogers [mailto:temp6453@hotmail.com]
Sent: Sunday, October 28, 2001 11:08 AM
To: mysql@lists.mysql.com; pgsql-hackers@postgresql.org;
pgsql-admin@postgresql.org
Subject: Ultimate DB Server
I'm questioning whether anyone has done benchmarks on various hardware
for PGSQL and MySQL. I'm either thinking dual P3-866's, Dual
AMD-1200's, etc. I'm looking for benchmarks of large queries on striped
-vs- non-striped volumes, different processor speeds, etc.
Any thoughts people?
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <mysql-thread89232@lists.mysql.com>
To unsubscribe, e-mail
<mysql-unsubscribe-todd=williamsen.net@lists.mysql.com>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
@ 2001-10-28 19:18 ` Jean-Michel POURE <jm.poure@freesurf.fr>
2001-10-28 22:19 ` Re: Ultimate DB Server mlw <markw@mohawksoft.com>
2001-10-28 22:41 ` Re: Ultimate DB Server Mike Rogers <temp6453@hotmail.com>
2001-10-29 08:10 ` Re: [HACKERS] Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
1 sibling, 3 replies; 16+ messages in thread
From: Jean-Michel POURE @ 2001-10-28 19:18 UTC (permalink / raw)
To: pgsql-hackers@postgresql.org; +Cc: Mike Rogers <temp6453@hotmail.com>
At 13:07 28/10/01 -0400, you wrote:
>I'm questioning whether anyone has done benchmarks on various hardware for
>PGSQL and MySQL. I'm either thinking dual P3-866's, Dual AMD-1200's, etc.
>I'm looking for benchmarks of large queries on striped -vs- non-striped
>volumes, different processor speeds, etc.
Hello Mike,
IMHO, you should consider *simple* software optimization first.
Hardware can bring a 2x gain whereas software optimization can boost an
application by 10x. Until now, I never heard or read about a real *software
optimization* benchmark between MySQL and PostgreSQL.
Software optimization includes the use of views, triggers, rules, PL/pgSQL
server side programming. By definition, it is hard to compare MySQL with
PostgreSQL because MySQL *does not include* these important features (and
probably will never do).
I see at least two easy cases where PostgreSQL beats MySQL:
1) Create a simple relational DB with triggers storing values instead of
performing LEFT JOINS. Increase the number of simultaneous queries. MySQL
will die at x queries and PostgreSQL will still be working at 5x queries.
2) Use PL/pgSQL to perform complex jobs normally devoted to an application
server (Java, PHP) on a separate platform. In some case (recursive loops
for example), network traffic can be divided by 100. As a result,
PostgreSQL can be 10x faster because everything is performed server-side.
This is to say that, in some circomstances, PostgreSQL running on an i586
with IDE drive beats MySQL on a double Pentium. In real life, applications
are always optimized at software level first before hardware level. This is
why PostsgreSQL is *by nature* better than MySQL.
Unless MySQL gets better, there is no real challenge in comparing both systems.
Cheers,
Jean-Michel POURE
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
2001-10-28 19:18 ` Re: Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
@ 2001-10-28 22:19 ` mlw <markw@mohawksoft.com>
2001-10-28 22:58 ` Re: Ultimate DB Server Mike Mascari <mascarm@mascari.com>
2 siblings, 1 reply; 16+ messages in thread
From: mlw @ 2001-10-28 22:19 UTC (permalink / raw)
To: Jean-Michel POURE <jm.poure@freesurf.fr>; +Cc: pgsql-hackers@postgresql.org, Mike Rogers <temp6453@hotmail.com>
> Hardware can bring a 2x gain whereas software optimization can boost an
> application by 10x. Until now, I never heard or read about a real *software
> optimization* benchmark between MySQL and PostgreSQL.
It has been my experience that a knowledgeable, SQL savvy engineer can not use
MySQL. You have to have no basic knowledge of SQL to be able to work within its
limitations. Every project with which I have tried MySQL, I have always found
myself trying to work around what I can't do with it. In that respect, it is
like working on Windows.
> I see at least two easy cases where PostgreSQL beats MySQL:
> 1) Create a simple relational DB with triggers storing values instead of
> performing LEFT JOINS. Increase the number of simultaneous queries. MySQL
> will die at x queries and PostgreSQL will still be working at 5x queries.
> 2) Use PL/pgSQL to perform complex jobs normally devoted to an application
> server (Java, PHP) on a separate platform. In some case (recursive loops
> for example), network traffic can be divided by 100. As a result,
> PostgreSQL can be 10x faster because everything is performed server-side.
Server side programming is a double edged sword. PostgreSQL is not a
distributed database, thus you are limited to the throughput of a single
system. Moving processing off to PHP or Java on a different system can reduce
the load on your server by distributing processing to other systems. If you can
cut query execution time by moving work off to other systems, you can
effectively increase the capacity of your database server.
Typically, on a heavily used database, you should try to limit server side
programming to that which reduces the database work load. If you are moving
work, which can be done on the client, back to the server, you will bottleneck
at the server while the client is sitting idle.
>
> This is to say that, in some circomstances, PostgreSQL running on an i586
> with IDE drive beats MySQL on a double Pentium. In real life, applications
> are always optimized at software level first before hardware level. This is
> why PostsgreSQL is *by nature* better than MySQL.
One of the reasons why PostgreSQL beats MySQL, IMHO, is that it has the SQL
features that allow you to control and reduce the database work load by doing
things smarter.
>
> Unless MySQL gets better, there is no real challenge in comparing both systems.
It is funny, I know guys that love MySQL. Even when I show them the cool things
they can do with Postgres, they just don't seem to get it. It is sort of like
talking to an Amiga user.
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
2001-10-28 19:18 ` Re: Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
2001-10-28 22:19 ` Re: Ultimate DB Server mlw <markw@mohawksoft.com>
@ 2001-10-28 22:58 ` Mike Mascari <mascarm@mascari.com>
2001-10-28 23:11 ` Re: Ultimate DB Server mlw <markw@mohawksoft.com>
0 siblings, 1 reply; 16+ messages in thread
From: Mike Mascari @ 2001-10-28 22:58 UTC (permalink / raw)
To: mlw <markw@mohawksoft.com>; +Cc: Jean-Michel POURE <jm.poure@freesurf.fr>; pgsql-hackers@postgresql.org, Mike Rogers <temp6453@hotmail.com>
mlw wrote:
>
..
> It is funny, I know guys that love MySQL. Even when I show them the cool things
> they can do with Postgres, they just don't seem to get it. It is sort of like
> talking to an Amiga user.
Hey. As someone who learned 68000 assembly on the Amiga back in '86,
I take that personally. There's nothing like writing a pixel editor
in 4096-color HAM mode in 68000 off of a floppy-based Commodore
Macro Assembler. Sadly, however, I don't yet see the Amiga 1000 on
the PostgreSQL ports list. ;-)
Mike Mascari
mascarm@mascari.com
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
2001-10-28 19:18 ` Re: Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
2001-10-28 22:19 ` Re: Ultimate DB Server mlw <markw@mohawksoft.com>
2001-10-28 22:58 ` Re: Ultimate DB Server Mike Mascari <mascarm@mascari.com>
@ 2001-10-28 23:11 ` mlw <markw@mohawksoft.com>
0 siblings, 0 replies; 16+ messages in thread
From: mlw @ 2001-10-28 23:11 UTC (permalink / raw)
To: Mike Mascari <mascarm@mascari.com>; +Cc: Jean-Michel POURE <jm.poure@freesurf.fr>; pgsql-hackers@postgresql.org, Mike Rogers <temp6453@hotmail.com>
Mike Mascari wrote:
>
> mlw wrote:
> >
> ..
> > It is funny, I know guys that love MySQL. Even when I show them the cool things
> > they can do with Postgres, they just don't seem to get it. It is sort of like
> > talking to an Amiga user.
>
> Hey. As someone who learned 68000 assembly on the Amiga back in '86,
> I take that personally. There's nothing like writing a pixel editor
> in 4096-color HAM mode in 68000 off of a floppy-based Commodore
> Macro Assembler. Sadly, however, I don't yet see the Amiga 1000 on
> the PostgreSQL ports list. ;-)
Sorry, I like to needle Amiga users. One of my closest friends is, what can
only be described as, a complete Amiga zealot. Most of the time it is pretty
fun to get him going, I hope you know it is all good natured fun.
I built my first robot using an RCA 1802 back in the late '70s. I still think
the P.C. was the worst computer design. Going from any platform to the
8080~8088 was such a let down. If someone had ported CP/M to the RCA 1802 back
in the '70s, computers may have been different today.
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
2001-10-28 19:18 ` Re: Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
@ 2001-10-28 22:41 ` Mike Rogers <temp6453@hotmail.com>
2001-10-29 01:52 ` Re: Ultimate DB Server Christopher Kings-Lynne <chriskl@familyhealth.com.au>
2 siblings, 1 reply; 16+ messages in thread
From: Mike Rogers @ 2001-10-28 22:41 UTC (permalink / raw)
To: pgsql-hackers@postgresql.org; Jean-Michel POURE <jm.poure@freesurf.fr>
MySQL and PostgreSQL are starting to move together as far as I can see.
MySQL has the _option_ of transactional database formats (you can use both
normal MyISAM tables and transactional tables). MySQL 4.0 has all those
various features you speak of. On all too many applications, MySQL kicks
ass. Admitedly, if you do massive complex database applications, PostgreSQL
can smoke it when done right, but MySQL works great for most tasks. It's
not even a matter of which is better or how to compare them. It is a
question of 'what is your purpose for the database' and then deciding based
on the intended purpose.
I did mention that it would be running BOTH MySQL and PostgreSQL, and
not just one. I use them both for various purposes, depending on the need
and am trying to move it to a seperate server to increase the speed of
queries on BOTH database systems. It's not a question of which is better,
but a question of what will maximize output for cost.
I think you may have misinterpreted the question
--
Mike
----- Original Message -----
From: "Jean-Michel POURE" <jm.poure@freesurf.fr>
To: <pgsql-hackers@postgresql.org>
Cc: "Mike Rogers" <temp6453@hotmail.com>
Sent: Sunday, October 28, 2001 3:18 PM
Subject: Re: [HACKERS] Ultimate DB Server
> At 13:07 28/10/01 -0400, you wrote:
> >I'm questioning whether anyone has done benchmarks on various hardware
for
> >PGSQL and MySQL. I'm either thinking dual P3-866's, Dual AMD-1200's,
etc.
> >I'm looking for benchmarks of large queries on striped -vs- non-striped
> >volumes, different processor speeds, etc.
>
> Hello Mike,
>
> IMHO, you should consider *simple* software optimization first.
>
> Hardware can bring a 2x gain whereas software optimization can boost an
> application by 10x. Until now, I never heard or read about a real
*software
> optimization* benchmark between MySQL and PostgreSQL.
>
> Software optimization includes the use of views, triggers, rules, PL/pgSQL
> server side programming. By definition, it is hard to compare MySQL with
> PostgreSQL because MySQL *does not include* these important features (and
> probably will never do).
>
> I see at least two easy cases where PostgreSQL beats MySQL:
> 1) Create a simple relational DB with triggers storing values instead of
> performing LEFT JOINS. Increase the number of simultaneous queries. MySQL
> will die at x queries and PostgreSQL will still be working at 5x queries.
> 2) Use PL/pgSQL to perform complex jobs normally devoted to an application
> server (Java, PHP) on a separate platform. In some case (recursive loops
> for example), network traffic can be divided by 100. As a result,
> PostgreSQL can be 10x faster because everything is performed server-side.
>
> This is to say that, in some circomstances, PostgreSQL running on an i586
> with IDE drive beats MySQL on a double Pentium. In real life, applications
> are always optimized at software level first before hardware level. This
is
> why PostsgreSQL is *by nature* better than MySQL.
>
> Unless MySQL gets better, there is no real challenge in comparing both
systems.
>
> Cheers,
> Jean-Michel POURE
>
>
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
2001-10-28 19:18 ` Re: Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
2001-10-28 22:41 ` Re: Ultimate DB Server Mike Rogers <temp6453@hotmail.com>
@ 2001-10-29 01:52 ` Christopher Kings-Lynne <chriskl@familyhealth.com.au>
2001-10-29 02:40 ` Re: Ultimate DB Server Christopher Kings-Lynne <chriskl@familyhealth.com.au>
2001-10-29 02:52 ` Re: Ultimate DB Server bpalmer <bpalmer@crimelabs.net>
2001-10-29 03:05 ` Re: Ultimate DB Server Mike Rogers <temp6453@hotmail.com>
2001-10-29 05:36 ` Re: Ultimate DB Server Lincoln Yeoh <lyeoh@pop.jaring.my>
2001-10-29 07:50 ` Re: Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
0 siblings, 5 replies; 16+ messages in thread
From: Christopher Kings-Lynne @ 2001-10-29 01:52 UTC (permalink / raw)
To: Mike Rogers <temp6453@hotmail.com>; pgsql-hackers@postgresql.org; Jean-Michel POURE <jm.poure@freesurf.fr>
> MySQL and PostgreSQL are starting to move together as far as I can see.
> MySQL has the _option_ of transactional database formats (you can use both
> normal MyISAM tables and transactional tables). MySQL 4.0 has all those
> various features you speak of.
Not it doesn't.
It supports the UNION statement (thank god!)
And this is for 4.1:
-------
MySQL 4.1, the following development release
Internally, through a new .frm file format for table definitions, MySQL 4.0
lays the foundation for the new features of MySQL 4.1, such as nested
subqueries, stored procedures, and foreign key integrity rules, which form
the top of the wish list for many of our customers. Along with those, we
will also include simpler additions, such as multi-table UPDATE statements.
After those additions, critics of MySQL have to be more imaginative than
ever in pointing out deficiencies in the MySQL Database Management System.
For long already known for its stability, speed, and ease of use, MySQL will
then match the requirement checklist of very demanding buyers.
--------
I don't get how you can have different tables being transactional in your
database??
ie. What on earth does this do? (pseudo)
create table blah not_transactional;
create table hum not_transactional;
begin;
insert into blah values (1);
insert into hum values (2);
rollback;
?????
On all too many applications, MySQL kicks
> ass. Admitedly, if you do massive complex database applications,
> PostgreSQL
> can smoke it when done right, but MySQL works great for most tasks. It's
> not even a matter of which is better or how to compare them. It is a
> question of 'what is your purpose for the database' and then
> deciding based
> on the intended purpose.
> I did mention that it would be running BOTH MySQL and PostgreSQL, and
> not just one. I use them both for various purposes, depending on the need
> and am trying to move it to a seperate server to increase the speed of
> queries on BOTH database systems. It's not a question of which is better,
> but a question of what will maximize output for cost.
> I think you may have misinterpreted the question
> --
> Mike
>
> ----- Original Message -----
> From: "Jean-Michel POURE" <jm.poure@freesurf.fr>
> To: <pgsql-hackers@postgresql.org>
> Cc: "Mike Rogers" <temp6453@hotmail.com>
> Sent: Sunday, October 28, 2001 3:18 PM
> Subject: Re: [HACKERS] Ultimate DB Server
>
>
> > At 13:07 28/10/01 -0400, you wrote:
> > >I'm questioning whether anyone has done benchmarks on various hardware
> for
> > >PGSQL and MySQL. I'm either thinking dual P3-866's, Dual AMD-1200's,
> etc.
> > >I'm looking for benchmarks of large queries on striped -vs- non-striped
> > >volumes, different processor speeds, etc.
> >
> > Hello Mike,
> >
> > IMHO, you should consider *simple* software optimization first.
> >
> > Hardware can bring a 2x gain whereas software optimization can boost an
> > application by 10x. Until now, I never heard or read about a real
> *software
> > optimization* benchmark between MySQL and PostgreSQL.
> >
> > Software optimization includes the use of views, triggers,
> rules, PL/pgSQL
> > server side programming. By definition, it is hard to compare MySQL with
> > PostgreSQL because MySQL *does not include* these important
> features (and
> > probably will never do).
> >
> > I see at least two easy cases where PostgreSQL beats MySQL:
> > 1) Create a simple relational DB with triggers storing values instead of
> > performing LEFT JOINS. Increase the number of simultaneous
> queries. MySQL
> > will die at x queries and PostgreSQL will still be working at
> 5x queries.
> > 2) Use PL/pgSQL to perform complex jobs normally devoted to an
> application
> > server (Java, PHP) on a separate platform. In some case (recursive loops
> > for example), network traffic can be divided by 100. As a result,
> > PostgreSQL can be 10x faster because everything is performed
> server-side.
> >
> > This is to say that, in some circomstances, PostgreSQL running
> on an i586
> > with IDE drive beats MySQL on a double Pentium. In real life,
> applications
> > are always optimized at software level first before hardware level. This
> is
> > why PostsgreSQL is *by nature* better than MySQL.
> >
> > Unless MySQL gets better, there is no real challenge in comparing both
> systems.
> >
> > Cheers,
> > Jean-Michel POURE
> >
> >
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
2001-10-28 19:18 ` Re: Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
2001-10-28 22:41 ` Re: Ultimate DB Server Mike Rogers <temp6453@hotmail.com>
2001-10-29 01:52 ` Re: Ultimate DB Server Christopher Kings-Lynne <chriskl@familyhealth.com.au>
@ 2001-10-29 02:40 ` Christopher Kings-Lynne <chriskl@familyhealth.com.au>
4 siblings, 0 replies; 16+ messages in thread
From: Christopher Kings-Lynne @ 2001-10-29 02:40 UTC (permalink / raw)
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>; Mike Rogers <temp6453@hotmail.com>; pgsql-hackers@postgresql.org; Jean-Michel POURE <jm.poure@freesurf.fr>
Doh! I messed up my example!
The first table was supposed to be transactional.
> I don't get how you can have different tables being transactional in your
> database??
>
> ie. What on earth does this do? (pseudo)
>
create table blah transactional;
> create table hum not_transactional;
>
> begin;
> insert into blah values (1);
> insert into hum values (2);
> rollback;
>
> ?????
Chris
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
2001-10-28 19:18 ` Re: Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
2001-10-28 22:41 ` Re: Ultimate DB Server Mike Rogers <temp6453@hotmail.com>
2001-10-29 01:52 ` Re: Ultimate DB Server Christopher Kings-Lynne <chriskl@familyhealth.com.au>
@ 2001-10-29 02:52 ` bpalmer <bpalmer@crimelabs.net>
4 siblings, 0 replies; 16+ messages in thread
From: bpalmer @ 2001-10-29 02:52 UTC (permalink / raw)
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>; +Cc: Mike Rogers <temp6453@hotmail.com>; pgsql-hackers@postgresql.org; Jean-Michel POURE <jm.poure@freesurf.fr>
> Not it doesn't.
>
> It supports the UNION statement (thank god!)
>
> And this is for 4.1:
This crap shouldn't be on the hackers list, please take it else where.
The hackers lists is for people developing postgresql, not for people
auguing about the merits of postgresql vs mysql.
Please go elsewhere.
- Brandon
----------------------------------------------------------------------------
c: 646-456-5455 h: 201-798-4983
b. palmer, bpalmer@crimelabs.net pgp:crimelabs.net/bpalmer.pgp5
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
2001-10-28 19:18 ` Re: Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
2001-10-28 22:41 ` Re: Ultimate DB Server Mike Rogers <temp6453@hotmail.com>
2001-10-29 01:52 ` Re: Ultimate DB Server Christopher Kings-Lynne <chriskl@familyhealth.com.au>
@ 2001-10-29 03:05 ` Mike Rogers <temp6453@hotmail.com>
2001-10-29 07:44 ` Re: Ultimate DB Server Hannu Krosing <hannu@tm.ee>
4 siblings, 1 reply; 16+ messages in thread
From: Mike Rogers @ 2001-10-29 03:05 UTC (permalink / raw)
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>; pgsql-hackers@postgresql.org; Jean-Michel POURE <jm.poure@freesurf.fr>
What that does is very simple: it rolls back the one that is keeping track
of it's transactions. Think of the overhead if someone doesn't have
transactional statements. The idea is, in PGSQL, all inserts and updates
are essentially logged so that they can be rolled back. Here is the MySQL
concept:
Have a log table that logs all transactions (lets say, failed or not)
1. begin transaction
2. insert into non-transactional table 'user did this, status-
unprocessed'
3. insert into payment table
4. insert into product table
5. update to processed
6. insert into shipping
7. update to 'pending shipping'
Perfectly common transaction that happens. Now! What if you want the
entry inserted and dealt with as a status and what happens, but you don't
want all the evidence of that to disappear when you hit rollback. It means
you can have some things roll back and others don't. In PGSQL, that would
have to be begin/rollback for only transactional entries.
--
Mike
----- Original Message -----
From: "Christopher Kings-Lynne" <chriskl@familyhealth.com.au>
To: "Mike Rogers" <temp6453@hotmail.com>; <pgsql-hackers@postgresql.org>;
"Jean-Michel POURE" <jm.poure@freesurf.fr>
Sent: Sunday, October 28, 2001 9:52 PM
Subject: RE: [HACKERS] Ultimate DB Server
> > MySQL and PostgreSQL are starting to move together as far as I can see.
> > MySQL has the _option_ of transactional database formats (you can use
both
> > normal MyISAM tables and transactional tables). MySQL 4.0 has all those
> > various features you speak of.
>
> Not it doesn't.
>
> It supports the UNION statement (thank god!)
>
> And this is for 4.1:
>
> -------
> MySQL 4.1, the following development release
>
> Internally, through a new .frm file format for table definitions, MySQL
4.0
> lays the foundation for the new features of MySQL 4.1, such as nested
> subqueries, stored procedures, and foreign key integrity rules, which form
> the top of the wish list for many of our customers. Along with those, we
> will also include simpler additions, such as multi-table UPDATE
statements.
>
> After those additions, critics of MySQL have to be more imaginative than
> ever in pointing out deficiencies in the MySQL Database Management System.
> For long already known for its stability, speed, and ease of use, MySQL
will
> then match the requirement checklist of very demanding buyers.
> --------
>
> I don't get how you can have different tables being transactional in your
> database??
>
> ie. What on earth does this do? (pseudo)
>
> create table blah not_transactional;
> create table hum not_transactional;
>
> begin;
> insert into blah values (1);
> insert into hum values (2);
> rollback;
>
> ?????
>
>
> On all too many applications, MySQL kicks
> > ass. Admitedly, if you do massive complex database applications,
> > PostgreSQL
> > can smoke it when done right, but MySQL works great for most tasks.
It's
> > not even a matter of which is better or how to compare them. It is a
> > question of 'what is your purpose for the database' and then
> > deciding based
> > on the intended purpose.
> > I did mention that it would be running BOTH MySQL and PostgreSQL,
and
> > not just one. I use them both for various purposes, depending on the
need
> > and am trying to move it to a seperate server to increase the speed of
> > queries on BOTH database systems. It's not a question of which is
better,
> > but a question of what will maximize output for cost.
> > I think you may have misinterpreted the question
> > --
> > Mike
> >
> > ----- Original Message -----
> > From: "Jean-Michel POURE" <jm.poure@freesurf.fr>
> > To: <pgsql-hackers@postgresql.org>
> > Cc: "Mike Rogers" <temp6453@hotmail.com>
> > Sent: Sunday, October 28, 2001 3:18 PM
> > Subject: Re: [HACKERS] Ultimate DB Server
> >
> >
> > > At 13:07 28/10/01 -0400, you wrote:
> > > >I'm questioning whether anyone has done benchmarks on various hardwar
e
> > for
> > > >PGSQL and MySQL. I'm either thinking dual P3-866's, Dual AMD-1200's,
> > etc.
> > > >I'm looking for benchmarks of large queries on striped -vs-
non-striped
> > > >volumes, different processor speeds, etc.
> > >
> > > Hello Mike,
> > >
> > > IMHO, you should consider *simple* software optimization first.
> > >
> > > Hardware can bring a 2x gain whereas software optimization can boost
an
> > > application by 10x. Until now, I never heard or read about a real
> > *software
> > > optimization* benchmark between MySQL and PostgreSQL.
> > >
> > > Software optimization includes the use of views, triggers,
> > rules, PL/pgSQL
> > > server side programming. By definition, it is hard to compare MySQL
with
> > > PostgreSQL because MySQL *does not include* these important
> > features (and
> > > probably will never do).
> > >
> > > I see at least two easy cases where PostgreSQL beats MySQL:
> > > 1) Create a simple relational DB with triggers storing values instead
of
> > > performing LEFT JOINS. Increase the number of simultaneous
> > queries. MySQL
> > > will die at x queries and PostgreSQL will still be working at
> > 5x queries.
> > > 2) Use PL/pgSQL to perform complex jobs normally devoted to an
> > application
> > > server (Java, PHP) on a separate platform. In some case (recursive
loops
> > > for example), network traffic can be divided by 100. As a result,
> > > PostgreSQL can be 10x faster because everything is performed
> > server-side.
> > >
> > > This is to say that, in some circomstances, PostgreSQL running
> > on an i586
> > > with IDE drive beats MySQL on a double Pentium. In real life,
> > applications
> > > are always optimized at software level first before hardware level.
This
> > is
> > > why PostsgreSQL is *by nature* better than MySQL.
> > >
> > > Unless MySQL gets better, there is no real challenge in comparing both
> > systems.
> > >
> > > Cheers,
> > > Jean-Michel POURE
> > >
> > >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Don't 'kill -9' the postmaster
> >
>
>
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
2001-10-28 19:18 ` Re: Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
2001-10-28 22:41 ` Re: Ultimate DB Server Mike Rogers <temp6453@hotmail.com>
2001-10-29 01:52 ` Re: Ultimate DB Server Christopher Kings-Lynne <chriskl@familyhealth.com.au>
2001-10-29 03:05 ` Re: Ultimate DB Server Mike Rogers <temp6453@hotmail.com>
@ 2001-10-29 07:44 ` Hannu Krosing <hannu@tm.ee>
0 siblings, 0 replies; 16+ messages in thread
From: Hannu Krosing @ 2001-10-29 07:44 UTC (permalink / raw)
To: Mike Rogers <temp6453@hotmail.com>; +Cc: Christopher Kings-Lynne <chriskl@familyhealth.com.au>; pgsql-hackers@postgresql.org, Jean-Michel POURE <jm.poure@freesurf.fr>
Mike Rogers wrote:
>
> What that does is very simple: it rolls back the one that is keeping track
> of it's transactions. Think of the overhead if someone doesn't have
> transactional statements. The idea is, in PGSQL, all inserts and updates
> are essentially logged so that they can be rolled back. Here is the MySQL
> concept:
> Have a log table that logs all transactions (lets say, failed or not)
> 1. begin transaction
> 2. insert into non-transactional table 'user did this,
> status - unprocessed'
> 3. insert into payment table
> 4. insert into product table
> 5. update to processed
> 6. insert into shipping
> 7. update to 'pending shipping'
> Perfectly common transaction that happens. Now! What if you want the
> entry inserted and dealt with as a status and what happens, but you don't
> want all the evidence of that to disappear when you hit rollback.
> It means you can have some things roll back and others don't. In PGSQL,
> that would have to be begin/rollback for only transactional entries.
Or you would run two parallel transactions (currently you need two
connections
for this) - one for logging and one for work.
I agree that having non_transactional (i.e. logging) tables may be
sometimes
desirable. I've been told that some of Oracles debugging/logging
facilities
are almost useless due-to the fact that they disappear at rollback.
------------------
Hannu
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
2001-10-28 19:18 ` Re: Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
2001-10-28 22:41 ` Re: Ultimate DB Server Mike Rogers <temp6453@hotmail.com>
2001-10-29 01:52 ` Re: Ultimate DB Server Christopher Kings-Lynne <chriskl@familyhealth.com.au>
@ 2001-10-29 05:36 ` Lincoln Yeoh <lyeoh@pop.jaring.my>
4 siblings, 0 replies; 16+ messages in thread
From: Lincoln Yeoh @ 2001-10-29 05:36 UTC (permalink / raw)
To: Mike Rogers <temp6453@hotmail.com>; Christopher Kings-Lynne <chriskl@familyhealth.com.au>; pgsql-general@postgresql.org; Jean-Michel POURE <jm.poure@freesurf.fr>
(reply- s/hackers/general/)
Well I put that sort of thing into my application logs, personal preference
for now.
It seems to me mixed transaction tables are likely to create an error prone
environment for little real gain.
No transactions doesn't necessarily mean faster (or slower). IMO MySQL has
that feature for backwards compatibility. Little to do with performance.
It would be good for claims regarding overheads/performance issues to be
backed by reproducible experiments, or at least interesting
statements/arguments.
I've used MySQL and it was far better than Postgresql when Postgresql was
Postgres95 (yuckyuckyuck!). While Postgresql has really gone a long way,
MySQL seems to have been stuck in denial till recently.
Will be interesting to see if MySQL can pull off the Windows vs Mac trick :).
I hope it will be a good clean fight :).
Cheerio,
Link.
At 11:05 PM 28-10-2001 -0400, Mike Rogers wrote:
>What that does is very simple: it rolls back the one that is keeping track
>of it's transactions. Think of the overhead if someone doesn't have
>transactional statements. The idea is, in PGSQL, all inserts and updates
>are essentially logged so that they can be rolled back. Here is the MySQL
>concept:
> Have a log table that logs all transactions (lets say, failed or not)
> 1. begin transaction
> 2. insert into non-transactional table 'user did this, status-
>unprocessed'
> 3. insert into payment table
> 4. insert into product table
> 5. update to processed
> 6. insert into shipping
> 7. update to 'pending shipping'
> Perfectly common transaction that happens. Now! What if you want the
>entry inserted and dealt with as a status and what happens, but you don't
>want all the evidence of that to disappear when you hit rollback. It means
>you can have some things roll back and others don't. In PGSQL, that would
>have to be begin/rollback for only transactional entries.
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
2001-10-28 19:18 ` Re: Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
2001-10-28 22:41 ` Re: Ultimate DB Server Mike Rogers <temp6453@hotmail.com>
2001-10-29 01:52 ` Re: Ultimate DB Server Christopher Kings-Lynne <chriskl@familyhealth.com.au>
@ 2001-10-29 07:50 ` Jean-Michel POURE <jm.poure@freesurf.fr>
4 siblings, 0 replies; 16+ messages in thread
From: Jean-Michel POURE @ 2001-10-29 07:50 UTC (permalink / raw)
To: pgsql-hackers@postgresql.org
>This crap shouldn't be on the hackers list, please take it else where.
>The hackers lists is for people developing postgresql, not for people
>auguing about the merits of postgresql vs mysql.
Agreed. Should be on pgsql-general@postgresql.org.
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: [HACKERS] Ultimate DB Server
2001-10-28 19:18 ` Re: Ultimate DB Server Jean-Michel POURE <jm.poure@freesurf.fr>
@ 2001-10-29 08:10 ` Jean-Michel POURE <jm.poure@freesurf.fr>
2 siblings, 0 replies; 16+ messages in thread
From: Jean-Michel POURE @ 2001-10-29 08:10 UTC (permalink / raw)
To: mlw <markw@mohawksoft.com>; +Cc: pgsql-general@postgresql.org, "Mike Rogers" <temp6453@hotmail.com>
If you answer, please email to pgsql-general@postgresql.org
****************************************************************************
***************************
>Server side programming is a double edged sword. PostgreSQL is not a
>distributed database, thus you are limited to the throughput of a single
>system. Moving processing off to PHP or Java on a different system can reduce
>the load on your server by distributing processing to other systems. If
>you can
>cut query execution time by moving work off to other systems, you can
>effectively increase the capacity of your database server.
Yes, but for the Web, SQL queries are SELECT with LEFT JOINS to get display
values of OIDs.
If you store LEFT JOIN results using triggers, you divide complexity by a
factor of 10.
MySQL
A simple example would be :
SELECT customer_name, category_name FROM customer_table WHERE customer_oid
= xxx
LEFT JOIN customer_category ON customer_oidcategory = category_oid;
PostgreSQL
Because Categories do not change a lot, it is possible to create a
category_name_tg field
table customer_table and store the value using a trigger. As UPDATE account
for 5% of all queries, it is not a real overhead.
To maintain consistency, you also add a customer_timestamp to
customer_table. When Category value changes all you need to do is: UPDATE
customer_table SET customer_timestamp = 'now' WHERE customer_oidcategory = yyy;
Under PostgreSQL, your query becomes
SELECT customer_name, customer_category_tg FROM customer_table WHERE
customer_oid = xxx
>Typically, on a heavily used database, you should try to limit server side
>programming to that which reduces the database work load. If you are moving
>work, which can be done on the client, back to the server, you will bottleneck
>at the server while the client is sitting idle.
I do not always agree server-side programming should be limited. It
depends. In some cases yes, in some cases no. Optimization is a progressive
task, where you start with basic things and end up with more complex
architecture. For what I noticed, 95% of applications were not truly
optimized.
> > This is to say that, in some circomstances, PostgreSQL running on an i586
> > with IDE drive beats MySQL on a double Pentium. In real life, applications
> > are always optimized at software level first before hardware level. This is
> > why PostsgreSQL is *by nature* better than MySQL.
>
>One of the reasons why PostgreSQL beats MySQL, IMHO, is that it has the SQL
>features that allow you to control and reduce the database work load by doing
>things smarter.
Agreed, This is what I meant when I said PostgreSQL beat MySQL.
> > Unless MySQL gets better, there is no real challenge in comparing both
> systems.
>
>It is funny, I know guys that love MySQL. Even when I show them the cool
>things
>they can do with Postgres, they just don't seem to get it. It is sort of like
>talking to an Amiga user.
On heavy workload systems MySQL cannot compare to PostgreSQL. It's funny to
read these mails
of people doing benchmarks.
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Ultimate DB Server
@ 2001-10-29 16:29 George Eric R Contr AFSPC/CVYZ <Eric.George@PETERSON.af.mil>
0 siblings, 0 replies; 16+ messages in thread
From: George Eric R Contr AFSPC/CVYZ @ 2001-10-29 16:29 UTC (permalink / raw)
To: Mike Rogers <temp6453@hotmail.com>; mysql@lists.mysql.com; pgsql-hackers@postgresql.org; pgsql-admin
Anandtech did an article on the dual athlon box that runs their forum.
Ot's not MySQL or PgSQL, but you might check it out.
http://www.anandtech.com/showdoc.html?i=1514
-----Original Message-----
From: Mike Rogers [mailto:temp6453@hotmail.com]
Sent: Sunday, October 28, 2001 10:08 AM
To: mysql@lists.mysql.com; pgsql-hackers@postgresql.org;
pgsql-admin@postgresql.org
Subject: Ultimate DB Server
I'm questioning whether anyone has done benchmarks on various hardware for
PGSQL and MySQL. I'm either thinking dual P3-866's, Dual AMD-1200's, etc.
I'm looking for benchmarks of large queries on striped -vs- non-striped
volumes, different processor speeds, etc.
Any thoughts people?
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <mysql-thread89232@lists.mysql.com>
To unsubscribe, e-mail
<mysql-unsubscribe-Eric.George=peterson.af.mil@lists.mysql.com>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
^ permalink raw reply [nested|flat] 16+ messages in thread
end of thread, other threads:[~2001-10-29 16:29 UTC | newest]
Thread overview: 16+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-10-28 17:07 ` Mike Rogers <temp6453@hotmail.com>
2001-10-28 17:36 ` Todd Williamsen <todd@williamsen.net>
2001-10-28 19:18 ` Jean-Michel POURE <jm.poure@freesurf.fr>
2001-10-28 22:19 ` mlw <markw@mohawksoft.com>
2001-10-28 22:58 ` Mike Mascari <mascarm@mascari.com>
2001-10-28 23:11 ` mlw <markw@mohawksoft.com>
2001-10-28 22:41 ` Mike Rogers <temp6453@hotmail.com>
2001-10-29 01:52 ` Christopher Kings-Lynne <chriskl@familyhealth.com.au>
2001-10-29 02:40 ` Christopher Kings-Lynne <chriskl@familyhealth.com.au>
2001-10-29 02:52 ` bpalmer <bpalmer@crimelabs.net>
2001-10-29 03:05 ` Mike Rogers <temp6453@hotmail.com>
2001-10-29 07:44 ` Hannu Krosing <hannu@tm.ee>
2001-10-29 05:36 ` Lincoln Yeoh <lyeoh@pop.jaring.my>
2001-10-29 07:50 ` Jean-Michel POURE <jm.poure@freesurf.fr>
2001-10-29 08:10 ` Jean-Michel POURE <jm.poure@freesurf.fr>
2001-10-29 16:29 Re: Ultimate DB Server George Eric R Contr AFSPC/CVYZ <Eric.George@PETERSON.af.mil>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox