I have a collection like: [{a: 'eXeD9', b: 399}, {a: 'eXe9', b: 35399} , xOBJs]
.
I am gonna search 24823293 in b field
. So as I know I am have to traverse all docs
, until there is a match with 24823293.
So I am confused if I create an index for b field
, how it can reduces the number of docs for scanning?
Because maybe the 24823293 is not within those reduced docs
.
As I am a mobile application developer, I am confused here any help.