From: Dirk Lutzebaeck <lutzeb@aeccom.com>
To: pgsql-sql@postgreSQL.org
Subject: does LIMIT save time?
Date: Thu, 19 Aug 1999 15:17:46 +0200 (CEST)
Message-ID: <14268.1018.192099.531387@blanc.aeccom.com> (raw)
Hi,
is using SELECT LIMIT faster than using SELECT without LIMIT on
the same query? If yes, in what way? What is if I use ORDER in the
SELECT clause?
Is it possible to get the *total* number of rows selected (ie. doing
the query virtually without LIMIT) when using a LIMIT clause?
Thanks for help,
Dirk
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-sql@postgresql.org
Cc: lutzeb@aeccom.com
Subject: Re: does LIMIT save time?
In-Reply-To: <14268.1018.192099.531387@blanc.aeccom.com>
References: <14268.1018.192099.531387@blanc.aeccom.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