pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
To: Jeremiah Jahn <jeremiah@cs.earlham.edu>
Cc: Dave Held <dave.held@arrayservicesgrp.com>
Cc: John A Meinel <john@arbash-meinel.com>
Cc: postgres performance <pgsql-performance@postgresql.org>
Subject: Re: name search query speed
Date: Thu, 03 Mar 2005 23:03:44 +0100
Message-ID: <422789C0.20201@logix-tt.com> (raw)
In-Reply-To: <1109882849.16326.99.camel@bluejay.goodinassociates.com>
References: <49E94D0CFCD4DB43AFBA928DDD20C8F90261845D@asg002.asg.local>
	<1109882849.16326.99.camel@bluejay.goodinassociates.com>

Hi, Jeremiah,

Jeremiah Jahn schrieb:
> doesn't that cause two queries? I used to do it that way and cut my time
> substantially by counting in-line. Even though the results were cached
> it still took more time.

This sounds rather strange.

> Also since the tables is constantly be updated
> the returned total would not always match the number of results on the
> second query.

Did you run both queries in the same transaction, with transaction
isolation level set to serializable? If yes, you found a serious bug in
PostgreSQL transaction engine.

Markus

-- 
Markus Schaber | Dipl. Informatiker | Software Development GIS

Fight against software patents in EU! http://ffii.org/
                                      http://nosoftwarepatents.org/



view thread (14+ messages)  latest in thread

Message-ID: <422789C0.20201@logix-tt.com>
Permalink:  ../422789C0.20201@logix-tt.com/
Also on:    postgresql.org/message-id/422789C0.20201@logix-tt.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: schabi@logix-tt.com, jeremiah@cs.earlham.edu, dave.held@arrayservicesgrp.com, john@arbash-meinel.com
  Subject: Re: name search query speed
  In-Reply-To: <422789C0.20201@logix-tt.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