pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: mark durrant <markd89@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Select performance vs. mssql
Date: Wed, 25 May 2005 09:29:36 +0800
Message-ID: <4293D500.8010908@familyhealth.com.au> (raw)
In-Reply-To: <20050524153637.64525.qmail@web53101.mail.yahoo.com>
References: <20050524153637.64525.qmail@web53101.mail.yahoo.com>

> --As Chris pointed out, how real-world is this test?
> His point is valid. The database we're planning will
> have a lot of rows and require a lot of summarization
> (hence my attempt at a "test"), but we shouldn't be
> pulling a million rows at a time.

If you want to do lots of aggregate analysis, I suggest you create a 
sepearate summary table, and create triggers on the main table to 
maintain your summaries in the other table...

> --MSSQL's ability to hit the index only and not having
> to go to the table itself results in a _big_
> performance/efficiency gain. If someone who's in
> development wants to pass this along, it would be a
> nice addition to PostgreSQL sometime in the future.
> I'd suspect that as well as making one query faster,
> it would make everything else faster/more scalable as
> the server load is so much less.

This is well-known and many databases do it.  However, due to MVCC 
considerations in PostgreSQL, it's not feasible for us to implement it...

Chris



view thread (17+ messages)  latest in thread

Message-ID: <4293D500.8010908@familyhealth.com.au>
Permalink:  ../4293D500.8010908@familyhealth.com.au/
Also on:    postgresql.org/message-id/4293D500.8010908@familyhealth.com.au

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: chriskl@familyhealth.com.au, markd89@yahoo.com
  Subject: Re: Select performance vs. mssql
  In-Reply-To: <4293D500.8010908@familyhealth.com.au>
  References: <20050524153637.64525.qmail@web53101.mail.yahoo.com> <4293D500.8010908@familyhealth.com.au>

* 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