Giter Site home page Giter Site logo

dsc-nosql-databases-section-recap-nyc-ds-100719's Introduction

NoSQL Databases - Recap

NoSQL vs. SQL

We began this lesson by comparing and contrasting Relational Databases/SQL with the various NoSQL database options that are out there, and outlined examples for when we would want to use each.

The 4 different kinds of NoSQL Databases are:

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

RDDs and Hadoop/Spark

We also took some time to dig into another data storage paradigm, Resilient Distributed Datasets, or RDDs such as Spark and Hadoop. We explored how these databases use redundancy to ensure that data is Fault Tolerant, and examined how the driving idea behind these paradigms , MapReduce, gives us great speed ups when working with truly massive datasets in a distributed manner.

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 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.

dsc-nosql-databases-section-recap-nyc-ds-100719's People

Contributors

mike-kane avatar sumedh10 avatar

Watchers

James Cloos avatar  avatar Mohawk Greene avatar Victoria Thevenot avatar Bernard Mordan avatar Otha avatar raza jafri avatar  avatar Joe Cardarelli avatar The Learn Team avatar Sophie DeBenedetto avatar  avatar  avatar Matt avatar Antoin avatar  avatar Alex Griffith avatar  avatar Amanda D'Avria avatar  avatar Ahmed avatar Nicole Kroese  avatar Kaeland Chatman avatar Lisa Jiang avatar Vicki Aubin avatar Maxwell Benton avatar  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.