Mongo Db: Normalization and De-Normalization

Normalization:- There are present multiple ways to represents your data. One of the way is in a Normalized way. Normalized way means, dividing up the data in to multiple collections. Another important aspect is that document of one collection can be referenced by the multiple documents of the different collections. That means there present some…

Concept of Compound Index in MongoDB for interview

Compound index means when we are creating an index on more than one keys. The best way to check how compound index affect the searching and sorting time is directly test it in the Mongo shell. Let’s create one collection of student with keys ‘student_id’,’student_name’ and ‘age’:- Now we will try to sort this output…