From: Tom Lane <tgl@sss.pgh.pa.us>
To: Donald Fraser <demolish@cwgsy.net>
Cc: [ADMIN] <pgsql-admin@postgresql.org>
Subject: Re: Are 50 million rows a problem for postgres ?
Date: Mon, 08 Sep 2003 11:14:00 -0400
Message-ID: <13996.1063034040@sss.pgh.pa.us> (raw)
In-Reply-To: <001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION>
References: <200309081032.51586.vendi@cosmoline.com>
<Pine.LNX.4.50.0309081014440.22692-100000@short.lancs.ac.uk>
<001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION>
"Donald Fraser" <demolish@cwgsy.net> writes:
> My analysis at the time was that to access random records, performance
> deteriorated the further away the records that you were accessing were
> from the beginning of the index. For example using a query that had
> say OFFSET 250000 would cause large delays.
Well, yeah. OFFSET implies generating and discarding that number of
records. AFAICS there isn't any shortcut for this, even in a query
that's just an indexscan, since the index alone can't tell us whether
any given record would actually be returned.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, demolish@cwgsy.net
Subject: Re: Are 50 million rows a problem for postgres ?
In-Reply-To: <13996.1063034040@sss.pgh.pa.us>
References: <200309081032.51586.vendi@cosmoline.com> <Pine.LNX.4.50.0309081014440.22692-100000@short.lancs.ac.uk> <001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION> <13996.1063034040@sss.pgh.pa.us>
* 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