MongoDB is one of the leading NoSQL database.
NoSQL is some what misleading name, which now means Not Only SQL!
The basic intention for NoSQL database is to scale modern web databases and to facilitate solving the complex data storage( and structuring ) requirements of modern day web applications.
MongoDB is a Document-Oriented Database System and is Schema-free.
Here the Document is a BSON document.
BSON is Binary JSON.
– It’s a fat-free alternative to XML.
– JSON is a lightweight data-interchange format.
To learn JSON
(look only at JSON format)
Objects, Arrays: JSON Using jQuery
Fetch JSON Array Elements Using jQuery AJAX Method: getJSON
MongoDB and BSON
MongoDB can be considered as a giant array of JSON objects, since the documents are in binary JSON format, insertion and searching will be much faster.
MongoDB – is Schema-Free
– There is no predefined structure. i.e., There’ll be no column name and predefined datatype.
MongoDB – Getting Started Guide
Downloading and Installing: MongoDB
Goto MongoDB official website, click on Downloads link and select the 64-bit version for your OS and download it. Note that, 32-bit version has some limitations. Look for the MongoDB official documentations for more details.
Once you have the download file, unzip it.
If you’re on Windows OS, then create a folder C://data/db which will be used by MongoDB software.
To start using MongoDB, goto MongoDB folder, inside Bin, you can find mongod.exe – click on it, and leave it to run.
Next click on mongo.exe and start passing the instructions/commands.