Mongo gives up Joins and Complex Transactions in favor of speed and horizontal scalability
Needs for joins are alleviated by denormalizing data
Mongo is a document-oriented database
Uses JSON notation for documents and queries
Stored as BSON (binary JSON) internally
https://www.youtube.com/watch?feature=player_embedded&v=0euni8AdT1c
$ mongoimport --db pcat --collection products < products.3eb7cd1a9633.json
connected to: 127.0.0.1
Mon Sep 30 20:20:17.963 check 9 11
Mon Sep 30 20:20:17.963 imported 11 objects
Needs for joins are alleviated by denormalizing data
Mongo is a document-oriented database
Uses JSON notation for documents and queries
Stored as BSON (binary JSON) internally
https://www.youtube.com/watch?feature=player_embedded&v=0euni8AdT1c
$ mongoimport --db pcat --collection products < products.3eb7cd1a9633.json
connected to: 127.0.0.1
Mon Sep 30 20:20:17.963 check 9 11
Mon Sep 30 20:20:17.963 imported 11 objects
Scalability
- Vertical - buy a bigger box
- Horizontal - more machines

0 comments:
Post a Comment