Introducing MongoDB
MongoDB is what is referred to as a NoSQL database, which refers to a data model that is not tabular, as opposed to relational databases which are tabular. The structure of data in MongoDB is analogous to JSON, with each of the documents consisting of key-value pairs.
Once you have MongoDB set up on your computer and you have the MongoDB server running, you can import your data into a database using the mongoimport
terminal command. The mongoimport
command will take data from a static file, parse the data, and place the data into a database. The documentation for mongoimport
is available at the following link: https://docs.mongodb.com/manual/reference/program/mongoimport/.
There are a few parameters that need to be specified along with the mongoimport
command. The first of these is the name of the input file which should be written after the --file
parameter. The command should be run in a terminal from the directory containing fake_weather_data.csv
, so the filename is...