using limit - Mailing list pgsql-admin

From Anibal David Acosta
Subject using limit
Date
Msg-id 001f01cb9d56$13d69790$3b83c6b0$@devshock.com
Whole thread Raw
Responses Re: using limit  (Michael Holt <michael@aers.ca>)
List pgsql-admin

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

pgsql-admin by date:

Previous
From: Frederiko Costa
Date:
Subject: Re: restore database files
Next
From: "Tsing, Vadim"
Date:
Subject: Copying database directory