Skip site navigation (1) Skip section navigation (2)

Re: Decide between Postgresql and Mysql (help of

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: PFC <lists(at)peufeu(dot)com>
Cc: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>, Marcos <mjs_ops(at)gmx(dot)net>,pgsql-performance(at)postgresql(dot)org
Subject: Re: Decide between Postgresql and Mysql (help of
Date: 2006-03-28 21:56:08
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
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
Jim C. Nasby, Sr. Engineering Consultant      jnasby(at)pervasive(dot)com
Pervasive Software    work: 512-231-6117
vcard:       cell: 512-569-9461

In response to


pgsql-performance by date

Next:From: Jim C. NasbyDate: 2006-03-28 21:59:20
Subject: Re: MVCC intro and benefits docs?
Previous:From: Jim C. NasbyDate: 2006-03-28 21:52:59
Subject: Re: Decide between Postgresql and Mysql (help of

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group