anchor.diff:  -define(RETRY_INTERVAL, 5 * 1000).
   -define(RETRY_ATTEMPTS, 20).
   
  -design_doc_view(Req, #db{name=BucketName} = Db, DesignName, ViewName, VBuckets) ->
  +subset_design_doc_view(Req, #db{name=BucketName} = Db, DesignName, ViewName,
  +                       [VBucket]) ->
       DDocId = <<"_design/", DesignName/binary>>,
  -    Specs = build_local_simple_specs(BucketName, DDocId, ViewName, VBuckets),
  +    [Spec] = build_local_set_specs(BucketName, DDocId, ViewName, [VBucket]),
  +    Specs = [Spec#set_view_spec{category = dev}],
       MergeParams = finalize_view_merge_params(Req, Db, DDocId, ViewName, Specs),
  +    set_active_partition(DDocId, BucketName, VBucket),
       couch_index_merger:query_index(couch_view_merger, MergeParams, Req).
  +
   
   full_design_doc_view(Req, Db, DesignName, ViewName, VBucketsDict) ->
       DDocId = <<"_design/", DesignName/binary>>,
  
positive.code:                {[{vbucket_db_name(BucketName, VBId), FullViewName} || VBId <- VBuckets]}}
               ]},
      #merged_index_spec{url = MergeURL, ejson_spec = Props}.
  
negative.code:                 full_set ->
                      full_design_doc_view(Req, Db, DDocName, ViewName, VBucketsDict);
                  VBucket ->
                      subset_design_doc_view(Req, Db, DDocName, ViewName, [VBucket])
              end
      end.
  
  