X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id AD165B43164 for ; Fri, 4 Jul 2003 14:09:26 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 92445-08 for ; Fri, 4 Jul 2003 11:09:15 -0300 (ADT) Received: from svr4.postgresql.org (svr4.postgresql.org [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id 1B43CB43169 for ; Fri, 4 Jul 2003 11:09:13 -0300 (ADT) Received: from TheWorld.com (pcls2.std.com [199.172.62.104]) by svr4.postgresql.org (Postfix) with ESMTP id E933BB2851E for ; Fri, 4 Jul 2003 14:09:10 +0000 (GMT) Received: from trouble (pool-151-203-213-193.bos.east.verizon.net [151.203.213.193]) by TheWorld.com (8.12.8p1/8.12.8) with SMTP id h64E5W8C032583; Fri, 4 Jul 2003 10:05:33 -0400 From: "Brian Tarbox" To: "Shridhar Daithankar" , Subject: Re: PostgreSQL vs. MySQL Date: Fri, 4 Jul 2003 10:07:46 -0400 Message-ID: <01bf01c34235$a4c8aa60$01000001@trouble> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal In-Reply-To: <200307041823.40101.shridhar_daithankar@nospam.persistent.co.in> X-Archive-Number: 200307/61 X-Sequence-Number: 2354 Ok, I'll give more data :-) Under both MySql and Postgres the tests were run on a variety of systems, all with similar results. My own personal testing was done on a P4 2.4Mhz, 512 mb memory, latest production versions of each database. By vanilla RedHat I mean that I installed RH on a clean system, said install everything and did no customization of RH settings. We had about 40 tables in the db, with joined queries on about 8-12 tables. Some tables had 10,000 records, some 1000 records, other tables had dozens of records. There were indexes on all join fields, and all join fields were listed as foriegn keys. All join fields were unique primary keys in their home table (so the index distribution would be very spread out). I'm not permitted to post the actual tables as per company policy. I did no tuning of MySql. The only tuning for PG was to vacuum and vacuum analyze. I'll also mention that comments like this one are not productive: >I don't think Brian has any interest in being helped. Please understand the limits of how much information a consultant can submit to an open list like this about a client's confidential information. I've answered every question I _can_ answer and when I get hostility in response all I can do is sigh and move on. I'm sorry if Shridhar is upset that I can't validate his favorite db but ad hominin comments aren't helpful. Brian -----Original Message----- From: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance-owner@postgresql.org]On Behalf Of Shridhar Daithankar Sent: Friday, July 04, 2003 8:54 AM To: pgsql-performance@postgresql.org Subject: Re: [PERFORM] PostgreSQL vs. MySQL On Friday 04 July 2003 17:57, Brian Tarbox wrote: > I recently took a system from MySQL to Postgres. Same HW, SW, same data. > The major operations where moderately complex queries (joins on 8 tables). > > The results we got was that Postgres was fully 3 times slower than MySql. > We were on this list a fair bit looking for answers and tried all the > standard answers. It was still much much much slower. This invites the slew of questions thereof. Can you provide more information on 1. Hardware 2. Postgresql version 3. Postgresql tuning you did 4. data size 5. nature of queries 6. mysql benchmarks to rate against. Unless you provide these, it's difficult to help.. Shridhar ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org