couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Barker <norman.bar...@gmail.com>
Subject Re: Multi-View
Date Wed, 18 Aug 2010 14:26:53 GMT
Hi Behrad,

I will add test cases to the test harness for multiview and we will
see if we can get this working, the log files help, thanks! Looks like
you are posting as an authenticated user, I haven't tried this with
the multiview, so I will add a test.

I will send you an email later on today when this is done.

thanks,

Norman

On Wed, Aug 18, 2010 at 2:47 AM, JRad <behradz@gmail.com> wrote:
> I couldn't verify the specific error in single view case. In the attached
> file I included two log snippets, one for single view test and other calling
> two views which receives "unsupported view" error!
>
>
>  --Behrad
>
> ________________________________
> From: Norman Barker <norman.barker@gmail.com>
> To: Behrad Zari <behrad_zari@yahoo.com>
> Cc: dev@couchdb.apache.org
> Sent: Tuesday, August 17, 2010 18:53:04
> Subject: Re: Multi-View
>
> Behrad, (please cc dev list, thanks!)
>
> the code handles that there is a reduce function and should work, this
> seems an error with streaming response, particularly as you are only
> calling one view. One view request is handled differently and just
> results in that view being streamed to the client.
>
> Can you turn the debug flag on in local.ini and see if you can more
> information?
>
> thanks,
>
> Norman
>
> On Tue, Aug 17, 2010 at 5:32 AM, Behrad Zari <behrad_zari@yahoo.com> wrote:
>> Hi Norman,
>> I've compiled and patched your multi-view code from
>> http://github.com/normanb/couchdb-multiview
>>
>> My fist attempt to test was:
>> curl -verbose -X POST -H "Content-Type: application/json" -d @sample.json
>> "http://192.168.129.65:5984/lbd/_multi"
>> where sample.json is:
>> {"views":["_design/lbd/_view/contacts_all"]}
>>
>> but I get:
>>
>> HTTP/1.1 200 OK
>> < Transfer-Encoding: chunked
>> < Server: CouchDB/1.0.0 (Erlang OTP/R13B)
>> < Date: Tue, 17 Aug 2010 11:17:26 GMT
>> < Content-Type: text/plain;charset=utf-8
>> < Cache-Control: must-revalidate
>> <
>> * Received problem 2 in the chunky parser
>> *
>>  Closing connection #0
>> curl: (56) Received problem 2 in the chunky parser
>>
>> If my view naming is correct then:
>> I don't know what is happening but since our views are map/reduce views
>> (they all have reduce functions)
>> and couchdb reduce by default is true, your patch is somehow affected with
>> this behaviour!
>>
>>
>>
>> My Second question is how (exact syntax?) can we path parameters?
>> startkey1, endkey1, startdocId1, reduce=false
>> startkey2, endkey2, startdocId2, reduce=false
>> ...
>>
>>
>>
>>
>> --Behrad
>>
>>
>

Mime
View raw message