does LIMIT save time?

Поиск
Список
Период
Сортировка
От Dirk Lutzebaeck
Тема does LIMIT save time?
Дата
Msg-id 14268.1018.192099.531387@blanc.aeccom.com
обсуждение исходный текст
Ответы Re: [SQL] does LIMIT save time?  (wieck@debis.com (Jan Wieck))
Список pgsql-sql
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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] Problems using count() with a join
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] Counting the number of distinct rows returned