nosql databases
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
NoSQL DATABASES Cristina Gómez Alonso
#womentechmakers
Digital World
Web 2.0: BigData & Data
in real-time
Importance of BigData Gartner Agost 2013
BigData is hard to move…
… because it is BIG !
And we have to achieve …
SPEED!
BigData Tools: NoSQL Movement
New tools for new problems
NoSQL DB Properties
Scalability
Adaptability Data Persistence
Cost reductions
Simplified problems
NoSQL “Fantastic” Types
Graph
Document Wide-Column
Key-Value Redis, Memcached
MongoDB, CouchDB
Hbase, Cassandra
Neo4j
Database Trends
by 10gen
“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!
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
JSON to BJSON
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
More examples update ensureIndex count remove
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
5th in the Ranking (db-engines.com)
Job Trends (451research.com i indeed.com)
Questions?
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
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
THANK YOU for your attention
Cristina Gómez Alonso
@crisgomal