+ All Categories
Home > Data & Analytics > No SQL databases An experience with MongoDB

No SQL databases An experience with MongoDB

Date post: 21-Apr-2017
Category:
Upload: chun-hao-chang
View: 328 times
Download: 2 times
Share this document with a friend
13
NoSQL Databases: An experience with Jim Chang
Transcript
Page 1: No SQL databases   An experience with MongoDB

NoSQL Databases:

An experience with

Jim Chang

Page 2: No SQL databases   An experience with MongoDB

Firstly, understand what is

Page 3: No SQL databases   An experience with MongoDB

MongoDB

MongoDB:

Collections of a lot of JSONs, literally

Page 4: No SQL databases   An experience with MongoDB

Scalability is excluded in this discussion

Page 5: No SQL databases   An experience with MongoDB

Pros (1/3): SchemalessNo need to design schema, always ready for different kinds of data, just put them in the bag

Perfect for dirty data warehouse!

Page 6: No SQL databases   An experience with MongoDB

Pros (2/3): Easiness

Strong Integration with programing languagesYou don’t have to learn another language

Postgresql in Python:cur.execute("SELECT * from bar")

Page 7: No SQL databases   An experience with MongoDB

Pros (3/3): MapReduceUltimate solution for complicated queries

Page 8: No SQL databases   An experience with MongoDB

A simple MapReduce snippet (1/2)

Page 9: No SQL databases   An experience with MongoDB

A simple MapReduce snippet (2/2)

Page 10: No SQL databases   An experience with MongoDB

Cons(1/3): RedundancyIt takes more space than SQL does,because of the repetitive fields

Page 11: No SQL databases   An experience with MongoDB

Cons(2/3): No Joins

Repetitive Design Relational Design

Not suitable for “Relational” data design

Why You Should Never Use MongoDB (Sarah Mei)http://www.sarahmei.com/blog/2013/11/11/why-you-should-never-use-mongodb/

Page 12: No SQL databases   An experience with MongoDB

Cons(3/3): No transactionsNo transactions, the default configuration is not for consistency-concerned issue. Be careful if you want to handle monetary data

MongoDB, E-commerce and Transactions (Steven Francia)http://www.slideshare.net/spf13/mongodb-ecommerce-and-transactions-10524960

Page 13: No SQL databases   An experience with MongoDB

1. Schemaless

2. Easiness

3. MapReduce

1. Redundancy

2. No joins

3. No transactions


Recommended