nosql databases

29
NoSQL DATABASES Cristina Gómez Alonso #womentechmakers

Upload: crisgomal8

Post on 05-Dec-2014

264 views

Category:

Technology


3 download

DESCRIPTION

During recent years it has appeared a new concept of databases more flexible and dynamic. They are called NoSQL. That kind of databases coexist with classical relational databases, but: What do they provide us? Why have they appeared ? Which is the wide variety we can choose? We will learn from MongoDB their use and functionalities.

TRANSCRIPT

Page 1: NoSQL Databases

NoSQL DATABASES Cristina Gómez Alonso

#womentechmakers

Page 2: NoSQL Databases
Page 3: NoSQL Databases
Page 4: NoSQL Databases

Digital World

Page 5: NoSQL Databases

Where everything will be connected...

Link

Page 6: NoSQL Databases

Web 2.0: BigData & Data

in real-time

Page 7: NoSQL Databases

Importance of BigData Gartner Agost 2013

Page 9: NoSQL Databases

BigData is hard to move…

… because it is BIG !

Page 10: NoSQL Databases

And we have to achieve …

SPEED!

Page 11: NoSQL Databases

BigData Tools: NoSQL Movement

Page 12: NoSQL Databases

New tools for new problems  

NoSQL DB Properties

Scalability

Adaptability Data Persistence

Cost reductions

Simplified problems

Page 13: NoSQL Databases

NoSQL “Fantastic” Types  

Graph

Document Wide-Column

Key-Value Redis,  Memcached  

MongoDB,  CouchDB  

Hbase,    Cassandra  

Neo4j  

Page 14: NoSQL Databases

Database Trends

Page 15: NoSQL Databases

by 10gen

Page 16: NoSQL Databases

“MongoDB   is   a   tool   of   the   devil  coming   from   the   underworld   to  torment  me  for  my  sins.  Their  arms  are   map/reduce   and   mongodump.  It   poke   me   with   them   day   and  night,  and  I  still  have  nightmares  of  misunderstanding…  

NO!!! MongoDB is not that!

Page 17: NoSQL Databases

Features s

•  Structure:  db  à  col  à  doc  à  key/value    •  Relationships:  Array&Documents  •  Flexible  Data  Model  •  Desployment:  replicated  servers    •  Examples:  foursquare,  craigslist    •  Free  courses  of  6  weeks  (10h/week)  university.mongodb.com  • Online  tool:  try.mongodb.org  

Page 18: NoSQL Databases

JSON to BJSON

Page 19: NoSQL Databases

Operations

Connection: •  getDB  •  connect  

Readings: •  find  •  findone    Operations on collections: •  count  •  createIndex  •  drop  •  sort  

Access Control: •  addUser  •  changeUserPassword  •  getLastError  •  help  

Replication: •  conf  •  help  •  add  •  remove  

Sharding: •  addShard  •  enableSharding  •  status  

Writings: •  insert  •  update  •  save  •  findAndModify  •  remove  

Page 20: NoSQL Databases

More examples update ensureIndex count remove  

Page 21: NoSQL Databases

OPERATIONAL ONLINE DATA REAL-TIME, LOW LATENCY, HIGH AVAILABILITY

• M2M  Apps  • Mobile/Social  Apps  •  Product  Catalog  •  360  degree-­‐view  of  a  user  • Comment  Storage  • Voting  Systems  

Page 22: NoSQL Databases

5th in the Ranking (db-engines.com)

Page 23: NoSQL Databases

Job Trends (451research.com i indeed.com)

Page 24: NoSQL Databases

Questions?

Page 25: NoSQL Databases
Page 26: NoSQL Databases

1.  In  order  to  get  their  attention,  you  have  to  turn  them  on.  

2.  They   have   a   lot   of   data,   but   are   still  clueless.    

3.  They   are   supposed   to   help   you   solve  problems,   but   half   the   time   they   are   the  problem.    

4.  As  soon  as  you  commit  to  one,  you  realize  that,   if   you   had  waited   a   little   longer   you  could  have  had  a  better  model.  

Similarities

Page 27: NoSQL Databases

1.  No   one   but   the   creator   understands   their  internal  logic.  

2.  The   nat ive   language   they   use   to  communicate   with   other   computers   is  incomprehensible  to  everyone  else.  

3.  Even   your   smallest  mistakes   are   stored   in  long-­‐term  memory  for  later  retrieval.  

4.  As   soon   as   you   make   a   commitment   to  one,   you   find   yourself   spending   half   your  paycheck  on  accessories  for  it.  

Similarities

Page 28: NoSQL Databases

THANK YOU for your attention

Page 29: NoSQL Databases

Cristina Gómez Alonso

@crisgomal