You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Mikeal Rogers <mi...@gmail.com> on 2010/06/11 03:52:45 UTC

Re: view server line protocol changes for _list

I just want to kick the tires on this before we start locking things up for 1.0.

Do we think we can get this in?

-Mikeal

On Tue, May 25, 2010 at 11:24 PM, Dirkjan Ochtman <di...@ochtman.nl> wrote:
> On Wed, May 26, 2010 at 01:36, Mikeal Rogers <mi...@gmail.com> wrote:
>> I'd like to propose the following changes to the view server protocol
>> for list functions.
>>
>>>>> ["lists", "name"]
>> <<< ["getRow"]
>>>>> ["list_row", {"key":"k","value":"v"}]
>> <<< ["getRow"]
>>>>> ["list_row", {"key":"k","value":"v"}]
>> <<< ["start", "chunk", {"headers":{}, "code":200}]
>> <<< ["send", "chunk"]
>> <<< ["send", "chunk"]
>> <<< ["getRow"]
>>>>> ["list_row", {"key":"k","value":"v"}]
>> <<< ["getRow"]
>>>>> ["list_end"]
>> <<< ["end", "tail chunk"]
>>
>> The big change is that there is no longer a strict request/response.
>> The erlang side stays idle accepting chunks to send until it gets a
>> ["getRow"] call.
>
> Hopefully it will be called get_row rather than getRow, if we already
> have list_row?
>
> Cheers,
>
> Dirkjan
>