Home > Archive > PostgreSQL Performance > March 2006 > Re: Decide between Postgresql and Mysql (help of









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Decide between Postgresql and Mysql (help of
Merlin Moncure

2006-03-29, 9:32 am

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

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com