pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig A. James <cjames@modgraph-usa.com>
To: Guy Rouillier <guyr-ml1@burntmail.com>
To: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: High update activity, PostgreSQL vs BigDBMS
Date: Sun, 07 Jan 2007 15:56:31 -0800
Message-ID: <45A188AF.5070006@modgraph-usa.com> (raw)
In-Reply-To: <45A09FF4.7060906@modgraph-usa.com>
References: <45935A49.6080602@burntmail.com>
	<bf54be870612280106n1247520dtb48e10cb4bdc43e9@mail.gmail.com>
	<459F0EA6.30403@burntmail.com>
	<459F1421.9090905@modgraph-usa.com>
	<45A075A2.9090906@burntmail.com>
	<45A09FF4.7060906@modgraph-usa.com>

Craig A. James wrote:
> The "idiom" to replace count() was 
> "select col from tbl order by col desc limit 1".  It worked miracles for 
> my app.

Sorry, I meant to write, "the idiom to replace MAX()", not count()...  MAX() was the function that was killing me, 'tho count() also gave me problems.

Craig



view thread (39+ messages)  latest in thread

Message-ID: <45A188AF.5070006@modgraph-usa.com>
Permalink:  ../45A188AF.5070006@modgraph-usa.com/
Also on:    postgresql.org/message-id/45A188AF.5070006@modgraph-usa.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: cjames@modgraph-usa.com, guyr-ml1@burntmail.com
  Subject: Re: High update activity, PostgreSQL vs BigDBMS
  In-Reply-To: <45A188AF.5070006@modgraph-usa.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