- Create an index on the key value used as the primary key.
- Create an index on the key value used as the foreign key.
- Create a multicolumn index on the key value used as the foreign key and the most unique column in the document.
- Create a multicolumn index on the key value used as the primary and also the forign key.
You are designing a MongoDB schema to support queries that will include lookups. What should you do?
June 25, 2021June 25, 2021
0 Comment