Wednesday, April 22, 2015

MongoDB NoSql

Key points to know about MongoDB
  • It's a NoSQL database - In another way it is no RDBMS
  • MongoDB does not use SQL as a query language , It uses java script syntactical way to query the db.It is not fully ACID-compliant
  • Data stores as documents, into buckets
  • Collection is the term to identify the buckets
  • A document is a set of data , That Stored as BSON format (Binary JSON) 
  • Client feed the JSON input and db engine translate them as BSON.
  • The process of data retrieval will transform the BSON to JSON. 
  • The manipulation of a document can be very easy. 
  • Fetched documents are ready to use on the web layer. 
  • Queries are in JSON style.
  • Forming query is like taking with your friend with java notation. 
  •     db.tablea.find()  /* How easy know */ 
  • [Note: Don't care about complex query now. Just park the thought and continue reading. Because we have option]


  • You have media files to store , go and get GridFS. 
  • The actual strength is , highly scalable, massive performance, No need to maintain document structure (I love it).

No comments:

Post a Comment

Merging two sorted arrays - Big O (n+m) time complexity

 Problem :  Merge the two sorted arrays. Edge case :  Array can empty Arrays can be in different size let getMaxLength = ( input1 , input...