Re: Joint index including MAX() ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



you can also try :

select val FROM table ORDER BY val DESC LIMIT 1;

which usually is much quicker.

-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux