mongodb - Mongo 2.6.12 secondaries not using index -
we upgraded our mongo replica set 2.4 2.6.12 , having strange behavior primary uses indexes , secondaries not.
for instance query:
query fitly_metrics_production.rank_ledger_entries query: { $query: { user_id: objectid('56dd084df093a136580be18a'), category: "chest" }, $orderby: { _id: -1 } } plansummary: ixscan { _id: 1 } ntoskip:0 nscanned:1645536 nscannedobjects:1645536 keyupdates:0 numyields:12866 locks(micros) r:138352610 nreturned:1 reslen:316 481856ms
when run explain() on on same box see
{ "cursor" : "btreecursor user_id_1_category_1", "ismultikey" : false, "n" : 9, "nscannedobjects" : 9, "nscanned" : 9, "nscannedobjectsallplans" : 30, "nscannedallplans" : 30, "scanandorder" : true, "indexonly" : false, "nyields" : 0, "nchunkskips" : 0, "millis" : 0, "indexbounds" : { "user_id" : [ [ objectid("56dd084df093a136580be18a"), objectid("56dd084df093a136580be18a") ] ], "category" : [ [ "chest", "chest" ] ] }, "server" : "ip-10-7-2-11:27017", "filterset" : false }
and when run on primary hit index properly, have 2 secondaries , occurring on both secondaries.
any idea of going on? thanks.
Comments
Post a Comment