MongoDB - daTa ModeLLinG Concepts: SQL - Where all to UsE ?
Data Modeling Data modeling (data modelling) is the analysis of data objects and their relationships to other data objects. Data modeling is often the first step in database design and object-oriented programming as the designers first create a conceptual model of how data items relate to each other. Data modeling involves a progression from conceptual model to logical model to physical schema. MongoDB Data Modeling In MongoDB, data has a flexible schema . It is totally different from SQL database where you had to determine and declare a table's schema before inserting data. MongoDB collections do not enforce document structure. The main challenge in data modeling is balancing the need of the application, the performance characteristics of the database engine, and the data retrieval patterns. Following things must be consider while designing MongoBD data models Always design schema according to requirements . Perform join on write operations only not on read operations. Obj...