anchor.diff:  reindex(Ctx, {OrgId, _OrgName}=OrgInfo, Index) ->
       NameIdDict = chef_db:create_name_id_dict(Ctx, Index, OrgId),
       %% Grab all the database IDs to do batch retrieval on
  -    AllIds = dict:fold(fun(_K, V, Acc) -> [V|Acc] end,
  -                       [],
  -                       NameIdDict), %% All dict values will be unique anyway
  +    AllIds = all_ids_from_name_id_dict(NameIdDict),
       BatchSize = envy:get(chef_wm, bulk_fetch_batch_size, pos_integer),
       batch_reindex(Ctx, AllIds, BatchSize, OrgInfo, Index, NameIdDict).
   
  
positive.code:                                      Time
                                      ]),
      chef_db:make_context(ReqId).
  
  %% @doc Reindex objects listed in file `File'.
  %%
  
negative.code:     %% returned as EJson directly, because none of their
      %% information is actually stored as a JSON "blob" in the
      %% database.
      PreliminaryEJson = decompress_and_decode(SO),
      NameKey = name_key(chef_object_type(Index)),
      ItemName = ej:get({NameKey}, PreliminaryEJson),
      {ok, ObjectId} = dict:find(ItemName, NameIdDict),
  