![]() ![]() Sharding: Scalability to Handle Massive Data GrowthĪ modern data platform needs to be able to handle very fast queries and massive datasets using ever bigger clusters of small machines. A replica set is a group of at least three MongoDB instances that continuously replicate data between them, offering redundancy and protection against downtime in the face of a system failure or planned maintenance. When you create a database in MongoDB, the system automatically creates at least two more copies of the data, referred to as a replica set. With MongoDB, high availability is built right into the design. To show which collections are in a particular database, use the command listCollections.Īn important way to ensure high availability is by keeping more than one copy of your data. Collections do not enforce a schema, and documents in the same collection can have different fields.Įach collection is associated with one MongoDB database. But collections in MongoDB are far more flexible. If you are familiar with relational databases, you can think of a collection as a table. In MongoDB, a collection is a group of documents. But from a developer perspective, MongoDB is a JSON database. It enables developers to quickly deliver new application functionality.įor faster access internally and to support more data types, MongoDB converts documents into a format called Binary JSON or BSON. The document model provides flexibility to work with complex, fast-changing, messy data from numerous sources. ![]() Compare that to a traditional relational database table, where adding a field means adding a column to the database table itself and therefore to every record in the database.ĭocuments can be nested to express hierarchical relationships and to store structures such as arrays. The fields in a JSON document can vary from document to document. The document data model maps naturally to objects in application code, making it simple for developers to learn and use. Programming Languages: Does MongoDB Speak Your Language?ĭocuments: The Records in a Document Database.Sharding: Scalability to Handle Massive Data Growth.Replica Sets: Ensuring High Availability.Documents: The Records in a Document Database.Here are some of the key concepts and terms you will encounter as you learn about MongoDB. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |