Get timestamp for latest entry

Im trying something like below:

SELECT time AS lastRecordTimestamp, last(field) FROM measurement123.

But, its taking way too much time to return as compared to regular queries. Is there any elegant way to find it ?