using limit

Поиск
Список
Период
Сортировка
От Anibal David Acosta
Тема using limit
Дата
Msg-id 001f01cb9d56$13d69790$3b83c6b0$@devshock.com
обсуждение исходный текст
Ответы Re: using limit  (Michael Holt <michael@aers.ca>)
Список 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 по дате отправления:

Предыдущее
От: Frederiko Costa
Дата:
Сообщение: Re: restore database files
Следующее
От: "Tsing, Vadim"
Дата:
Сообщение: Copying database directory