incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zachary Zolton <>
Subject Re: _list behaves weird on start() after using getRow()
Date Mon, 25 Jan 2010 18:51:34 GMT
Being able to send a flag to getRow, not to flush the response, would
work for me so long as I'm still able to change the headers. My
initial scenario was being able to redirect from a value in the view


P.S. I guess we should move this conversation over to the dev ML

On Mon, Jan 25, 2010 at 10:50 AM, Joscha Feth <> wrote:
> Joscha Feth wrote:
>> that would allow for calling getRow without sending any headers and
>> still force validity if the user decides to use send() without calling
> I see the problem now :) - chunks added to the queue are streamed to
> the client on each getRow() call, there is no real buffer - thats why
> it is needed to send the client in advance to any additional call to
> getRow().
> What about an additional function hasRows() instead - that should do
> the trick to at least find out if there are rows at all, which should
> help in 90% of all the cases.
> Another option would be an additional flush() method which would allow
> flushing the chunk buffer on the user's choice - that would also be
> consistent with how output streams are handled in other
> applications/languages.
> I think a combination of both would be best - defaulting to flush() on
> every call to getRow() for inexperienced users, with a flag to disable
> immediate flushing and let the experienced users decide when they want
> to flush.
> Together with an hasRows() method which does not send any headers this
> should be a good solution for everyone. Thoughts?
> regards,
> Joscha
> --

View raw message