On Thu, Nov 19, 2009 at 7:06 PM, Li Zhengji <[email protected]> wrote: > Hi Jan, > > On Thu, Nov 19, 2009 at 9:50 PM, Jan Lehnardt <[email protected]> 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
