pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Glenn Maynard <glenn@zewt.org>
To: pgsql-performance@postgresql.org
Subject: Re: Slow query: table iteration (8.3)
Date: Thu, 4 Feb 2010 04:09:11 -0500
Message-ID: <bd36f99e1002040109w67aa1d71hc91261d183fad111@mail.gmail.com> (raw)
In-Reply-To: <2f4958ff1002040028j29e907c6l47e1f5efe83b667d@mail.gmail.com>
References: <bd36f99e1001291949r2e769e8i7050a832b8d5a3ef@mail.gmail.com>
	<603c8f071002031905w51dbea37y148284ea6546feda@mail.gmail.com>
	<bd36f99e1002040024i24a2c78vfad45611946c2ae9@mail.gmail.com>
	<2f4958ff1002040028j29e907c6l47e1f5efe83b667d@mail.gmail.com>

2010/2/4 Grzegorz Jaƛkiewicz <gryzman@gmail.com>:
> isn't that possible with window functions and cte ?
> rank, and limit ?

It is, but again I tried that when I originally designed this and I
think it ended up using seq scans, or at least being slow for some
reason or other.

But I'll be dropping this db into 8.4 soon to see if it helps
anything, and I'll check again (and if it's still slow I'll post more
details).  It's been a while and I might just have been doing
something wrong.

-- 
Glenn Maynard



view thread (14+ messages)  latest in thread

Message-ID: <bd36f99e1002040109w67aa1d71hc91261d183fad111@mail.gmail.com>
Permalink:  ../bd36f99e1002040109w67aa1d71hc91261d183fad111@mail.gmail.com/
Also on:    postgresql.org/message-id/bd36f99e1002040109w67aa1d71hc91261d183fad111@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: glenn@zewt.org
  Subject: Re: Slow query: table iteration (8.3)
  In-Reply-To: <bd36f99e1002040109w67aa1d71hc91261d183fad111@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