2. Table of contents
●
Overview of Big Data and NoSQL
●
Introduction to NoSQL
●
Features
●
NoSQL Databases
●
Example
●
Advantages & Disadvantages of NoSQL
●
NoSQL's applications
●
Summary
10. What does NoSQL look like?
●
●
2007
●
HUMONGOUS
●
Mong
oDB
is
Document Stores
Open source, free
●
Support for many
languages
the m
ost po
pular
in
NoSQ
L
world
!
11. Example
●
An AV store needs to store the list of customer
and order's details.
SQL
NoSQL
13. SQL vs NoSQL
●
INSERT INTO USERS VALUES(3,5)
●
db.users.insert({a:3,b:5})
●
SELECT * FROM users
●
db.users.find()
●
SELECT * FROM users WHERE age=33
●
db.users.find({age:33})
SELECT DISTINCT last_name FROM
users
●
db.users.distince('lastname')
●
db.users.find({name:/Joe/})
●
●
●
●
SELECT * FROM users WHERE name
LIKE “%Joe%”
●
UPDATE users SET a=1 WHERE b=’q’
SELECT order_id FROM orders o,
order_line_items li WHERE
li.order_id=o.order_id AND li.sku=12345
●
db.users.update({b:’q'}, {$set:
{a:1}}, false, true)
db.orders.find({“items.sku”:1234
5},{_id:1})
14. Advantage over SQL
●
Elastic scaling
●
Big data
●
Less management
●
Economics
●
Flexible data models
●
High Performance
19. When NoSQL?
●
●
●
Cannot write SQL
Extraordinary Large Applications (search
engines, social network,…)
Tiny Applications.
20. Are people out there using it?
●
Yes
●
Facebook with Cassandra
●
Google with BigTable
●
Amazon with SimpleDB
●
Season Store, Profile Store, Mobile App,...
21. Summary
●
We have learned a lot!
●
What are BigData and NoSQL.
●
What does NoSQL look like.
●
Advantages, Disadvantages.
●
Some syntaxs of NoSQL.
●
Applications of NoSQL.
Web 2.0
Social network
Internet of thing
Amazon, google, …. collect data for future use
Tại vì Big Data.
Có nhiều ưu điểm vượt trội hơn SQL.
Sự hỗ trợ đến từ cộng đồng mã nguồn mở.
Có thật là người ta đang dùng NoSQL?
Thuật ngữ NoSQL được giới thiệu lần đầu vào năm 1998 sử dụng làm tên gọi chung cho các
lightweight open source relational database (cơ sở dữ liệu quan hệ nguồn mở nhỏ) nhưng không
sử dụng SQL cho truy vấn.
Vào năm 2009, Eric Evans, nhân viên của Rackspace giới thiệu lại thuật ngữ NoSQL trong một
hội thảo về cơ sở dữ liệu nguồn mở phân tán. Thuật ngữ NoSQL đánh dấu bước phát triển của
thế hệ database mới: distributed (phân tán) + non-relational (không ràng buộc)