+1 vote
in NoSQL by
You are designing a MongoDB schema to support queries that will include lookups. What should you do?

a. Create an index on the key value used as the primary key.

b. Create an index on the key value used as the foreign key.

c. Create a multicolumn index on the key value used as the foreign key and the most unique column in the document.

d. Create a multicolumn index on the key value used as the primary and also the forign key.

1 Answer

0 votes
by
You are designing a MongoDB schema to support queries that will include lookups. What should you do?

Answer:-  Create a multicolumn index on the key value used as the foreign key and the most unique column in the document.

Related questions

0 votes
asked Aug 14, 2022 in NoSQL by AdilsonLima
+1 vote
asked May 31, 2019 in NoSQL by aaravkhandelwal.2018
...