MongoDB Documents: Fields with Arrays as Values - Supplementary Data Index

Hi,

Could someone please explain how having an index structured as :

0: AG1
1: MD1
2: OA1

is better than having the stucture as is:

AG1
MD1
OA1

My assumption here is that AG1, MD1, OA1 are distinct possible values.

Thanks!

Hi @Vikram_23738,

Can you please be a little more specific with your question. Please mention any assumptions that you are making.

For additional information on indexes, please refer our documentation on indexes.

Thanks,
Shubham Rajan
Curriculum Support Engineer