What should all points be taken into consideration while creating a schema in MongoDB?

devquora
devquora

Posted On: Feb 22, 2018

 

Following are the points which should be taken into consideration when you create a schema in MongoDB: –
  • Your schema should be designed according to your requirements.
  • If the objects are to be used together, you should combine them into one document. Otherwise, you should use them separately.
  • Joins should be performed while writing and not while reading.
  • If use cases are used more frequently, then you should optimize your schema.
  • Complex aggregation should be done in the schema.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    MongoDB Interview Questions

    What do you know about MongoDB?

    MongoDB is a cross-platform document-oriented database program which is open source and free in nature. It can also be..

    MongoDB Interview Questions

    List the important features of MongoDB.

    The important features of MongoDB are listed below: –Aggregation framework– it uses aggregation framework for the..

    MongoDB Interview Questions

    Which all languages can be used with MongoDB?

    Here goes a list of the languages which can be used with MongoDB: – C C++ C# Java Node.js Perl PHP Python Ruby Scala..