pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: PFC <lists@peufeu.com>
Cc: Scott Marlowe <smarlowe@g2switchworks.com>
Cc: Marcos <mjs_ops@gmx.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: Decide between Postgresql and Mysql (help of
Date: Tue, 28 Mar 2006 15:56:08 -0600
Message-ID: <20060328215608.GA75181@pervasive.com> (raw)
In-Reply-To: <op.s642dpyecigqcu@apollo13>
References: <1143559902.1241.16.camel@servidor>
	<1143572392.3625.79.camel@state.g2switchworks.com>
	<op.s642dpyecigqcu@apollo13>

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



view thread (28+ messages)  latest in thread

Message-ID: <20060328215608.GA75181@pervasive.com>
Permalink:  ../20060328215608.GA75181@pervasive.com/
Also on:    postgresql.org/message-id/20060328215608.GA75181@pervasive.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jnasby@pervasive.com, lists@peufeu.com, smarlowe@g2switchworks.com, mjs_ops@gmx.net
  Subject: Re: Decide between Postgresql and Mysql (help of
  In-Reply-To: <20060328215608.GA75181@pervasive.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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