<commit_before>---
layout: post
title: Intro to Databases
tags: databases mongoDB
categories: Databases
---
<h3> Introduction: </h3>

Before delving into the details of different database technologies, it's important that we go over the very definition of what a database even is. 

Without even knowing it, you use databases all the time. For every search, ____, or ____, you're likely engaging with a database - you just don't know it because web developers have hid it behind some fancy user interface. 

<h3> Part 1: NoSQL vs SQL</h3>

<b> NoSQL: </b> 
<li> "Not only" SQL
<li> stores data in more than just tabular relations

Types of NoSQL databases:
<li> Document Oriented (Mongo!)
<li> Key Value
<li> Graph
<li> Column Oriented

<b> SQL: </b>
<li> Strictly relational

------------------------------
<h3> Part 2: MongoDB </h3>

<b> Why Mongo? </b>
<li> Flexible!
<li> Speed - efficient indexing/storage techniques
<li> Scalability
<li> Querying

<b> Space: </b>

Because Mongo dynamically allocates and de-allocates RAM, it can be run on a small amount of RAM. 
<br>

-> Stores data in BSON structure, which is stored in a collection.<br>
-> Great [Documentation]


<b>Mongo Shell:</b>

[Documentation]: http://mongodb.com
<commit_msg>Update 2015-11-08-databases.md<commit_after>---
layout: post
title: Intro to Databases
tags: databases mongoDB
categories: Databases
---
<h3> An Introduction to Databases: </h3>

Before delving into the details of different database technologies, let's begin by going over the very definition of what a database even is. 

<h4> What is a database? </h4>

A database is structured set of data - this data can include numbers, text, or any other representation of meaningful information. 

<h4> Why are databases important? </h4>

Without even knowing it, you use databases all the time. For every Google search or Facebook profile view, you're engaging with a database - the details are just hidden behind a user interface. Databases make the lives of developers easier by providing them with a structured and uniform set of data that they can then use to manipulate in anyway. 

<h4> NoSQL vs SQL: </h4>

<b> NoSQL: </b> 
<li> "Not only" SQL
<li> stores data in more than just tabular relations

Types of NoSQL databases:
<li> Document Oriented (Mongo!)
<li> Key Value
<li> Graph
<li> Column Oriented

<b> SQL: </b>
<li> Strictly relational

------------------------------
<h4> MongoDB </h4>

<b> Why Mongo? </b>
<li> Flexible!
<li> Speed - efficient indexing/storage techniques
<li> Scalability
<li> Querying

<b> Space: </b>

Because Mongo dynamically allocates and de-allocates RAM, it can be run on a small amount of RAM. 
<br>

-> Stores data in BSON structure, which is stored in a collection.<br>
-> Great [Documentation]


<b>Mongo Shell:</b>

[Documentation]: http://mongodb.com

{'fraction_non_alphanumeric': 0.11621335217237726, 'fraction_numerical': 0.009184033910279053, 'mean_word_length': 3.8, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3841988', 'n_tokens_mistral': 889, 'n_tokens_neox': 842, 'n_words': 409}