How to return record(s) with max value in a view

Without trying it, I think that the built-in _stats reduce function might give you what you need, at least so you can try it out. You could then write a custom reduce that was more efficient (i.e. it output only the max value, not all the other stats).

http://docs.couchbase.com/admin/admin/Views/views-writing.html#reduce-functions