X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 65FF211F65E1 for ; Tue, 28 Mar 2006 17:56:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 24047-04 for ; Tue, 28 Mar 2006 17:56:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id E8DEC11F65CA for ; Tue, 28 Mar 2006 17:56:10 -0400 (AST) Received: by noel.decibel.org (Postfix, from userid 1001) id B9E3756431; Tue, 28 Mar 2006 15:56:10 -0600 (CST) Received: (hashcash-sendmail, from uid 1001); Tue, 28 Mar 2006 15:56:08 -0600 Date: Tue, 28 Mar 2006 15:56:08 -0600 From: "Jim C. Nasby" To: PFC Cc: Scott Marlowe , Marcos , pgsql-performance@postgresql.org Subject: Re: Decide between Postgresql and Mysql (help of Message-ID: <20060328215608.GA75181@pervasive.com> References: <1143559902.1241.16.camel@servidor> <1143572392.3625.79.camel@state.g2switchworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060328:lists@peufeu.com::XoJxpCOOcdHl2KHq:09kiZ X-Hashcash: 1:20:060328:smarlowe@g2switchworks.com::/iyTsRa/ooxD2jy8:00000000000 0000000000000000000000001nwh X-Hashcash: 1:20:060328:mjs_ops@gmx.net::rifbWOo9XWOpqYdR:00AJ9I X-Hashcash: 1:20:060328:pgsql-performance@postgresql.org::o5msz01eTWUkmOHi:00000 0000000000000000000000008DpS X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.108 required=5 tests=[AWL=0.108] X-Spam-Score: 0.108 X-Spam-Level: X-Archive-Number: 200603/567 X-Sequence-Number: 18004 Heh, too quick on the send button... On Tue, Mar 28, 2006 at 09:42:51PM +0200, PFC wrote: > I'll only speak about MyISAM. MySQL == MyISAM. InnoDB is useless : > if you want transactions, use postgres. > If you say to yourself "oh yeah, but it would be cool to use a > MyISAM table for stuff like hit counters etc"... Is it the job of a SQL > database to count hits on the root page of your site ? No. To store user > sessions ? No. The job of a SQL database is to efficiently handle data, > not to do something that should stay in RAM in the application server > process, or at worst, in a memcached record. Actually, it's entirely possible to do stuff like web counters, you just want to do it differently in PostgreSQL. Simply insert into a table every time you have a hit, and then roll that data up periodically. And using MyISAM is no panacea, either. Trying to keep a web counter in a MyISAM table means you'll serialize every web page on that counter update. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461