Primary Key (Default key _id provided by mongodb itself)įollowing example shows the document structure of a blog site, which is simply a comma separated key value pair.ĭescription: 'MongoDB is no sql database', The following table shows the relationship of RDBMS terminology with MongoDB. Dynamic schema means that documents in the same collection do not need to have the same set of fields or structure, and common fields in a collection's documents may hold different types of data. DocumentĪ document is a set of key-value pairs. Typically, all documents in a collection are of similar or related purpose. Documents within a collection can have different fields. A collection exists within a single database. CollectionĬollection is a group of MongoDB documents. A single MongoDB server typically has multiple databases. Each database gets its own set of files on the file system. Databaseĭatabase is a physical container for collections. MongoDB works on concept of collection and document. MongoDB is a cross-platform, document oriented database that provides, high performance, high availability, and easy scalability.
0 Comments
Leave a Reply. |