문제

I wonder what affects the size of the index. Do the size of indexed field affects the size of index? If i have field "X" and it contains 10letters strings and i have field "Y" and it contains 100letters string and i create on each of them separate indexes, the index on "Y" field will larger than index on "X" field?

도움이 되었습니까?

해결책

Many "things" effect the sie of indexes, from number, size and type of fields to whether the index is unque/sparse etc.

To answer your question directly:

the index on "Y" field will larger than index on "X" field?

Assuming that you have all the "Y" and "X" fields filled in every document in this fashion then the answer will be yes, {Y:1} will be larger than {X:1}.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top