an introduction to nosql
DESCRIPTION
A beginners introduction to nosql in very basic terms and covering introduction to MongoDBTRANSCRIPT
![Page 1: An introduction to Nosql](https://reader036.vdocument.in/reader036/viewer/2022082502/555098f8b4c9058b208b47e2/html5/thumbnails/1.jpg)
AN INTRODUCTION#NOSQL
NoSQL
![Page 2: An introduction to Nosql](https://reader036.vdocument.in/reader036/viewer/2022082502/555098f8b4c9058b208b47e2/html5/thumbnails/2.jpg)
What is NoSQL
Next Generation database
CharacteristicsNon-relationalDistributed Open-source Horizontally scalableNo Predefined Schema
![Page 3: An introduction to Nosql](https://reader036.vdocument.in/reader036/viewer/2022082502/555098f8b4c9058b208b47e2/html5/thumbnails/3.jpg)
An example
{ "_id" : { "$oid" : "536ce8d1c25cf6e89fa7deeb"} , "name" : "USA" , "type" : "country" , "count" : "1" , "states" : { "1" : "MA" , "2" : "TX" , "3" : "CA"}}
![Page 4: An introduction to Nosql](https://reader036.vdocument.in/reader036/viewer/2022082502/555098f8b4c9058b208b47e2/html5/thumbnails/4.jpg)
Types of NoSql
Document databases Similar to Key/Value but with a major difference that value is a document. Inspired by Lotus Notes. Example Couch DB, Mongo DB
Graph stores are used to store information about networks, such as social connections. Graph stores include Neo4J and HyperGraphDB.
Key-value stores are the simplest NoSQL databases. Every single item in the database is stored as an attribute name (or "key"), together with its value. Examples are Riak and Voldemort.
Wide-column stores such as Cassandra and HBase are optimized for queries over large datasets, and store columns of data together, instead of rows. Example Hadoop/ Hbase, Cassnadra, Level DB (from Google), BigTable
![Page 5: An introduction to Nosql](https://reader036.vdocument.in/reader036/viewer/2022082502/555098f8b4c9058b208b47e2/html5/thumbnails/5.jpg)
Why #nosql
Dynamic SchemaLarge columns of structured, semi structured
data and unstructured dataEfficient scale out architecture (Sharding)Helps in Agile development
![Page 6: An introduction to Nosql](https://reader036.vdocument.in/reader036/viewer/2022082502/555098f8b4c9058b208b47e2/html5/thumbnails/6.jpg)
SQL Databases No SQL Database
Example Oracle , mysql Mondo DB, CouchDB, Neo4J
Storage Model
Rows and tables Key-value. Data stored as single document in JSON, XML
Schemas Static Dynamic
Scaling Vertical & Horizontal
Horizontal
Transactions
Yes Certain levels
Data Manipulation
Select, Insert , Update
Through Object Oriented API’s
Differences
![Page 7: An introduction to Nosql](https://reader036.vdocument.in/reader036/viewer/2022082502/555098f8b4c9058b208b47e2/html5/thumbnails/7.jpg)
MongoDB
It is type of Document databaseWritten in C++Development started in 2007Commercial supported and developed by
10GenSupports multiple types of indexingIn built Sharding
![Page 8: An introduction to Nosql](https://reader036.vdocument.in/reader036/viewer/2022082502/555098f8b4c9058b208b47e2/html5/thumbnails/8.jpg)
What is Sharding
Sharding is the process of storing data records across multiple machines a.k.a Horizontal Scaling
![Page 9: An introduction to Nosql](https://reader036.vdocument.in/reader036/viewer/2022082502/555098f8b4c9058b208b47e2/html5/thumbnails/9.jpg)
References
http://nosql-database.org/http://www.mongodb.com/nosql-explainedhttp://www.slideshare.net/dstainer/
introduction-to-nosql-databases