Self Reflection: MongoDB
MongoDB day 1:
π Data model is a way to plan a strategy to arrange or organise data in some way. Types: embedded and reference.
π Mongodb is one of the document based database. It support sql ( structured data ) and nosql ( unstructured data )both.
π In mongoDB record is known as document and table is known as collection.
π Installation of mongodb
π Some basic commands
π Mongodb accept info in json format.
π Integration of mongodb with python.
π Detail about I/O operation, with the help of database how we can minimise the time complexity.
π findOne( ), bydefault print output in pretty format.
π explain( ), by default they print query planner for us but executionStats do explain in very detail.
π Indexing concept in mongoDB help us in arranging data in sorting order ( comes under IXSCAN ). But we never recommend to use indexing for searching name, address etc. ( Comes under collection scan )
π Aggregation help us in creating pipeline.
π Mongodb has support master, slave architecture. Where master replicates the data in all the slaves. Slaves contains groups of data i.e they contain sharded data.
π Cluster we can create on prem, using AWS service documentdb and using Atlas cloud by mongodb.
π Detail about reference model.