X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 73E5052A68 for ; Thu, 3 Mar 2005 18:04:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 47898-07 for ; Thu, 3 Mar 2005 18:04:04 +0000 (GMT) Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.250.190.2]) by svr1.postgresql.org (Postfix) with ESMTP id 97D1D552D6 for ; Thu, 3 Mar 2005 18:04:02 +0000 (GMT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id E24DF3209C; Thu, 3 Mar 2005 19:04:02 +0100 (MET) From: Christopher Browne X-Newsgroups: pgsql.sql Subject: Re: Postgres performance Date: Thu, 03 Mar 2005 12:39:13 -0500 Organization: cbbrowne Computing Inc Lines: 30 Message-ID: <60fyzciq7y.fsf@dba2.int.libertyrms.com> References: <421D8ABC.2030601@archonet.com> <1109775613.30529.359.camel@state.g2switchworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:GmceN17kp53YcofdgFjwBBeBlOQ= To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.115 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/47 X-Sequence-Number: 20526 lists@boutiquenumerique.com (PFC) writes: >> The reason PostgreSQL is slower is because it (and by extension the team >> behind it) cares about your data. > > Sure, postgres is (a bit but not much) slower for a simple > query like SELECT * FROM one table WHERE id=some number, and > postgres is a lot slower for UPDATES (although I heard that it's > faster than MySQL InnoDB)... There is a _HUGE_ set of misconceptions here. 1. The speed difference is only repeatedly true for simple selects when done against MyISAM tables. 2. That speed difference for UPDATEs is only true if you are talking about ONE MySQL(tm) client doing updates against MyISAM tables. MyISAM does not support row locks; if multiple clients are trying to update a table, they must fight for a single table lock, with the result that updating tables doesn't scale _at all_ with MySQL(tm) for the default table type. If you only have one process touching the database, MySQL(tm) can therefore look quite a lot better than PostgreSQL. Move to 2 clients and it's not quite so good. Move to 100 concurrent clients all trying to do updates and you may discover that you simply can't do that... -- let name="cbbrowne" and tld="cbbrowne.com" in String.concat "@" [name;tld];; http://www.ntlug.org/~cbbrowne/linuxxian.html A VAX is virtually a computer, but not quite.