Mongodb
Mongodb
1. Document databases.
2. Key-value stores.
3. Column-oriented databases.
4. Graph databases.
• NoSQL technologies, such as HBase’s column structure, Redis’s
key/value structure, and Neo4j’s graph structure.
• MongoDB and the document model were chosen because of great
flexibility and scalability when it comes to implementing backend
storage for web applications and services.
• Also MongoDB is one of the most popular and well supported
NoSQL databases currently available.
Differences
• SQL databases are used to store structured data while NoSQL
databases like MongoDB are used to save unstructured data.
• MongoDB is used to save unstructured data in JSON format.
• MongoDB does not support advanced analytics and joins like SQL
databases support.
Understanding MongoDB
• The BSON data format provides several different types that are used
when storing the JavaScript objects to binary form. These types match
the JavaScript type as closely as possible.
• It is important to understand these types because you can actually
query MongoDB to find objects that have a specific property that has
a value of a certain type.
• MongoDB assigns each of the data types an integer ID number from
1 to 255 that is used when querying by type.
createCollection() Method
db.createCollection(name, options)