From: Anibal David Acosta <aa@devshock.com>
To: pgsql-admin@postgresql.org
Subject: using limit
Date: Thu, 16 Dec 2010 16:18:50 -0300
Message-ID: <001f01cb9d56$13d69790$3b83c6b0$@devshock.com> (raw)
Hi
I really like to do efficient SQL queries so, my question is if I am
expecting no more than one row from a select, using the LIMIT 1 could
improve the performance?
If I use my logic, the LIMIT 1 instruction tell to postgres that stop
searching when found 1 record, but maybe it is unnecessary
Thanks
Anibal
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-admin@postgresql.org
Cc: aa@devshock.com
Subject: Re: using limit
In-Reply-To: <001f01cb9d56$13d69790$3b83c6b0$@devshock.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