Skip to main content

Posts

Mongo Learning Series 3

Week 3 : MongoDB Schema design Although we could keep the data in Third normal form, MongoDB recommends to store data close to the application in an Application driven schema. Key principles : 1.       Rich documents 2.       Pre/Join Embed data 3.       No Merge Joins 4.       No Constraints 5.       Atomic operations 6.       No declared Schema Relational Normalization: Goals of relational normalization 1.       Free the database of modification anomalies 2.       Minimize redesign when extending 3.       Avoid bias toward any particular access pattern MongoDB does not consider the 3 rd goal in its design. Alternate...

Mongo Learning Series 2

Week 2: CRUD CRUD Operations Mongo SQL Create Insert Insert Read Find Select Update Update Update Delete Remove Delete MongoDB does not use a separate query language Secrets of the Mongo Shell Mongo Shell is an interactive java script interpreter The Mongo shell is designed to be similar to the bash shell. The key strokes are modeled after the emacs editor. Up arrow brings the previous command Ctrl A goes to first of the line, can also use the home key Ctrl e  or Use the end key to the end of the line Can also move around through the arrow keys or bash customary ctrl f, ctrl b Type in help provides a list of topics to view BSON Introduced BSON stands for Binary JSON, is a serialization format designed to represent a super set of what can be transcribed in JSON format MongoDB uses a binary representation to store t...

Mongo Learning Series 1

Mongo Learning First of all, I want to thank and congratulate the MongoDB team for hosting such a wonderful introductory interactive course.  Good job guys. For those interested here is the url https://education.mongodb.com/ It is a 7 week course. The syllabus follows: Week 1: Introduction Introduction & Overview - Overview, Design Goals, the Mongo Shell, JSON Intro, installing tools, overview of blog project. Bottle, Pymongo Week 2: CRUD CRUD (Creating, Reading and Updating Data) - Mongo shell, query operators, update operators and a few commands Week 3: Schema Design Schema Design - Patterns, case studies and tradeoffs Week 4: Performance Using indexes, monitoring and understanding performance. Performance in sharded environments. Week 5: Aggregation Framework Goals, the use of the pipeline...