Why return the primary key when performing a secondary index query instead of the whole record? This seems like it would add an extra round-trip. Would it be possible add a flag to return the whole record?
Given the current way [Riak] index queries are expressed, I was reminded of the unfortunately named HTSQL; I'm not sure if I am fond of it or not yet, but I thought I'd pass along a few references as it bears some at least superficial similarity to what exists in Riak at the moment, and that may be of use:<p><a href="http://en.wikipedia.org/wiki/HTSQL" rel="nofollow">http://en.wikipedia.org/wiki/HTSQL</a><p><a href="http://htsql.org/doc/ref/index.html" rel="nofollow">http://htsql.org/doc/ref/index.html</a>