Mongo

MongoDB — a way beyond NoSQL

  •  
  •  
  •  
  • 3
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    3
    Shares

MongoDB, a famous name in developer community today. That enables you to leverage data and technology to maximize competitive advantage, Reduce risk for critical deployments, accelerate time-to-value, lowers total cost of ownership. MongoDB enables you to develop the application in fast and flexible environment.

Here are some benefits of MongoDB over traditional relational databases:

  • Fast and Iterative Development:
  • Flexible Data Model : MongoDB uses document based data model that includes collections and documents to store the data into database.
  • Multi-Datacenter Scalability
  • Integrated Feature Set : Analytics and data visualization, text search, graph processing, geospatial, in-memory performance and global replication allow you to deliver a wide variety of real-time applications on one technology, reliably and securely. RDBMS systems require additional, complex technologies demanding separate integration overhead and expense to do this well.

Concept behind MongoDB

Basically, the concept behind MongoDB was to combine the capabilities of relational databases and technologies of NoSQL. Initially, NoSQL sacrificed the capabilities of relational database but MongoDB is the only database which includes the critical capabilities of relational databases and technologies provided by NoSQL.

nexus-architecture

 

Data Model

MongoDB Multimodel architecture :

  • Flexible data model with key value pair based flat table like structure. User can login to Mongo shell to see the structure e.g.

Mongo Shell

Shell

  • Extensive query language that supports simple search as well as complex JOINS too.

Insert

  • With a flexible storage architecture, application owners can deploy storage engines optimized for different workload and operational requirements. Here is the internal structure of db directory.

Internal structure

Data as Document

MongoDb stores data as BSON (Binary JSON), that makes it faster. Documents that share a similar structure are typically organized as collections. You can think of collections as being analogous to a table in a relational database: documents are similar to rows, and fields are similar to columns.

MongoDB Dynamic Schema

MongoDB enables developers to design and evolve the schema through an iterative and agile approach, while enforcing data governance.MongoDB documents can vary in structure. For example, all documents that describe users might contain the user id and the last date they logged into the system, but only some of these documents might contain the user’s identity for one or more third-party applications.

Developers can start writing code and persist the objects as they are created. And when developers add more features, MongoDB continues to store the updated objects without the need for performing costly ALTER_TABLE operations, or worse – having to re-design the schema from scratch.

Query in MongoDB

Where other NoSQL are limited to key-value pair only, MongoDB enables developers to build applications with complex JOINS and searches. e.g.,

  • Key-value queries
  • Range queries
  • Geospatial queries
  • Search
  • Aggregation Framework
  • JOINs and graph traversals
  • MapReduce queries

 

Conclusion

So, MongoDB provide us full set of database functionality provided by relational database as well as technologies of NoSQL. Try it,

Please write me up if you find any issue. Cheers!

 

  • My partner and I stumbled over here different website and thought I may as well check things out. I like what I see so now i am following you. Look forward to going over your web page for a second time.|

    • Digvijay Tiwari

      Thanks,
      You can also suggest topic or write your story using link on top “Speak up here”.

  • There are several posts to choose from near this, I do think taking there reference could experience made this spot or article really informative. That’s not me expression this information is negative. Simply I’ve got to pronounce how the info provided here was unique, merely to make it more in close proximity to complete, supporting with former information get been actually good. The points you will enjoy touched allow me to share really important, thus I will spot some of the information here to produce this actually good for entirely the newbie’s here. Many thanks for this information. Actually helpful!

  • Many thanks for sharing this fine post. Very inspiring! (as always, btw)

  • Excellent post however , I was wanting to know if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit more. Bless you!

  • This is a terrific web site, would you be interested in doing an interview about how you designed it? If so e-mail me!

  • Hi, Neat post. There is an issue together with your web site in internet explorer, might test this… IE still is the marketplace leader and a big section of people will omit your magnificent writing because of this problem.