How to get the MOST out of a database?

Поиск
Список
Период
Сортировка
От
Тема How to get the MOST out of a database?
Дата
Msg-id 20001230071826.9498.qmail@mailhost.sidereal.kz
обсуждение исходный текст
Список pgsql-general
In my application, I often want to select one row from a database
which is the most of something.  Perhaps I want the most recent row
corresponding to a certain user.  One way to do this is to

SELECT .... SORT BY date LIMIT 1

but I can't believe that this is an efficient way to do it.  Or is it?

Thanks,

Dr Evil


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: Failed Statements within Transactions
Следующее
От: Lincoln Yeoh
Дата:
Сообщение: Re: Re: Failed Statements within Transactions