pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Merlin Moncure <mmoncure@gmail.com>
To: Jim C. Nasby <jnasby@pervasive.com>
Cc: 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: Wed, 29 Mar 2006 08:48:22 -0500
Message-ID: <b42b73150603290548s6894ac6bnecb5c32eb08bae0@mail.gmail.com> (raw)
In-Reply-To: <20060328215608.GA75181@pervasive.com>
References: <1143559902.1241.16.camel@servidor>
	<1143572392.3625.79.camel@state.g2switchworks.com>
	<op.s642dpyecigqcu@apollo13>
	<20060328215608.GA75181@pervasive.com>

On 3/28/06, Jim C. Nasby <jnasby@pervasive.com> wrote:
> Heh, too quick on the send button...
>
> On Tue, Mar 28, 2006 at 09:42:51PM +0200, PFC wrote:

> 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.

if you want raw speed, use a sequence for a hit-counter.  sequences
are wonder-tools and very lightweight.  Explain analyze for a sequence
nextval on my desktop box reports 47 microseconds.  thats 200k
sequence updates/second.  insert into a table (fsync off/cache write,
no keys) is not much slower.

PostgreSQL 8.1 saw a lot of performance improvements...but the most
important (and least publicized) is the reduced latency of simple
queries in high cache enviroments.

merlin



view thread (28+ messages)  latest in thread

Message-ID: <b42b73150603290548s6894ac6bnecb5c32eb08bae0@mail.gmail.com>
Permalink:  ../b42b73150603290548s6894ac6bnecb5c32eb08bae0@mail.gmail.com/
Also on:    postgresql.org/message-id/b42b73150603290548s6894ac6bnecb5c32eb08bae0@mail.gmail.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: mmoncure@gmail.com, 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: <b42b73150603290548s6894ac6bnecb5c32eb08bae0@mail.gmail.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