couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: some thoughts on view
Date Fri, 20 Nov 2009 03:15:37 GMT
On Thu, Nov 19, 2009 at 7:06 PM, Li Zhengji <zhengji.li@gmail.com> wrote:
> Hi Jan,
>
> On Thu, Nov 19, 2009 at 9:50 PM, Jan Lehnardt <jan@apache.org> wrote:
>>
>> Why is the current implementation not a good idea? It works well :)
>>
>> Cheers
>> Jan
>> --
>
> Because it's not a good idea to implement the same thing several
> times. Bulbs work well, but compact fluorescent lamps are better, :)
>
> It could be a bit terrible when upgrading the map function shared by
> several views. It's even worse when the upgrading is just an
> optimization: if we forget to upgrade some views' map function, the
> total performance downgrades, which will be hard to figure out.
>
> In current implementation, design docs are self-contained. This is the
> advantage. Am I correct?
>

Yes all view definitions in a given document are indexed together to
gain bulk efficiencies. So changing any of them will rebuild all,
anyway.

Thanks for the questions!

> --
> Li Zhengji
>



-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Mime
View raw message