Git Product home page Git Product logo

dsc-nosql-databases-section-recap-v2-1's Introduction

NoSQL Databases - Summary

Introduction

We began this section by comparing and contrasting relational/SQL databases with the NoSQL databases. The four different kinds of NoSQL databases are:

  • Document Stores
  • Key-Value Stores
  • Column Stores
  • Graph Databases

MongoDB

Next, we explored how to install MongoDB and get the MongoDB Server up and running. We learned some commands that we could use to interact with mongo right there in the server shell, and then focused on connecting to our MongoDB server with Python.

You should remember the following high-level takeaways from MongoDB:

  • You use the pymongo library and a little boilerplate code to connect to the MongoDB database.
  • In MongoDB, records are referred to as Documents.
  • We can create groups of documents called Collections.
  • Records are inserted by passing in our data as Python dictionaries.
    • We can insert a single record with our collection object's .insert_one() method.
    • We can insert many records by creating a list of dictionaries and passing the entire list to the collection object's .insert_many() method.
  • We can write queries by using the collection object's .find() method.
  • We can filter our queries by passing in the key-value pairs to filter by.
  • We can also use logic on our filters by making use of modifiers.

Summary

Congrats! You are now a (No)SQL wizard! It doesn't matter whether the data you want is stored in a SQL or a NoSQL database, you can access it with ease.

dsc-nosql-databases-section-recap-v2-1's People

Contributors

sumedh10 avatar loredirick avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.