Important terminology of MongoDB
Data in MongoDB contains a versatile schema and documents within the same collection. They 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. To create backup of database in MongoDB and you should be used mongodump command. This command can dump the whole information of your server into the dump directory. There are several choices on the market by that you’ll be able to limit the number of knowledge or produce backup of your remote server.
- Data is stored in the form of JSON style documents.
- Rich queries
- Fast in-place updates
- Replication and high availability
- Index on any attribute
- Rich queries
- Professional support by MongoDB
Where to Use MongoDB?
- Big Data
- Data Hub
- Mobile and Social Infrastructure
- Content Management and Delivery
- User Data Management
MongoDB supports a rich query language to support read and write operations (CRUD) as well as data aggregation, geospatial and queries text search. This provide the facility of replication and it is known as replica set.
This can be additionally offer automatic failover and information redundancy. A replica set could be a cluster of MongoDB servers that maintain an equivalent data set, providing redundancy and increasing data availability.
MongoDB provides horizontal measurability as a part of its core functionality:-
- Sharding distributes information across a cluster of machines.
- Tag aware sharding permits for guiding information to specific shards, like to require into consideration geographic distribution of the shards.
It supports several data types and some of them are explained below:-
String − This is the most commonly used datatype to store the data. String in MongoDB should be UTF-8 valid.
Arrays − This is used to store arrays or list and multiple values into one key.
Boolean − This type is used to store a boolean (true/ false) value.
Double − Double is used to store floating point values.
Min/ Max keys − This type is used to compare a value against the lowest and highest BSON components. BSON is a computer data interchange format used mainly as a data storage and network transfer format within the database. It is a binary form for representing simple data structures, associative arrays and different data types of specific interest to MongoDB. The name “BSON” is relies in the term JSON and stands for “Binary JSON”.
Integer − It is used to store a numerical value. Integer can be 32 bit or 64 bit depending upon your server.