Skip to main content

Posts

Showing posts with the label MonGoDB. JSON

CRUD Operations on MongoDB ( Insertion, Udpation, Deletion and Retrieval)

Mongo DB , as I have explained in one of my previous post( What is MonGODB ), is a Non- Relational Document Oriented Database. Consider, an Relational database like MYSQL, when we want to perform operations on MySQL DB, we have a query language named SQL. But in MongoDB, we don’t have another query language to perform these operations. For every operation, there exists a programming language API, that is used to perform the operations. So, Basically there are four operations that can be performed on a database known as(CRUD operations)     a)       Insertion     b)       Getting data from database     c)        Updating data in database     d)       Removing data Before moving forward lets just get familiar with few terms:     a)       Document : its like a...

What is MonGoDB??

Share on Google Plus Now a Days, we are hearing a lot about MongoDB. So, in this post I will try to briefly introduce to MongoDB. MonGoDB is "Non-Relational, JSON, Document Store". Explaining in detail, Non-Relational , --> The DB we use most like SQl, Oracle are Relational DBs(RDBMS). They do have the fixed schemas, lots of tables. So Non-relational in nothing like that. JSON : (JavaScript Object Notation) : It is basically a document with information in the form of key value pair. for example, {    name:"lorem",    address:"ipsum } thats it.  A simple JSON document where name and address are key and "lorem" and "ipsum" are corresponding values . So, MongoDB is the Non Relational database which stores information using DOCUMENT and that document is a JSON document. MongoDB stores collections of documents. (Consider the above exxample as collection  "Person"   with a document)(will elabo...