Skip to main content

Posts

Introduction to NoSQL(MONGODB)

Mongo DB is a document oriented database. It is an open source product, developed and supported by a company named 10gen what was the need of MongoDB although there were many databases in action?   Relational Databases have failed in solving some of the complex modern problems like :- Continuosly changing nature of data - structured, semi-structured, unstructured and polymorphic data. Applications now serve millions of users in different geo-locations, in different timezones and have to be up and running all the time, with data integrity maintained Applications are becoming more distributed with many moving towards cloud computing. What is Structured Data? Structured data is usually text files, with defined column titles and data in rows. Such data can easily be visualized in form of charts and can be processed using data mining tools. What is Unstructured Data? Unstructured data can be anything like video file, image file, PDF, Emails etc. What does these fi...

MongoDB - NoSQL Database

  MongoDB - NoSQL Database MongoDB is a NoSQL database written in C++ language. Some of its drivers use the C programming language as the base. MongoDB is a document oriented database where it stores data in collections instead of tables . The best part of MongoDB is that the drivers are available for almost all the popular programming languages What is Document based storage? A Document is nothing but a data structure with name-value pairs like in JSON. Also, excessive JOINS can be avoided by saving data in form of Arrays and Documents(Embedded) inside a Document. For example : Student object has attributes name , rollno and subjects , where subjects is a List. Document for Student in MongoDB will be like : { name : "Ashish Singh", rollno : 7011, subjects : ["C Language", "C++", "Core Java"] }   History of MongoDB MongoDB was developed by Eliot Horowitz and Dwight Merriman in the year 2007 , when they experienced some...

Difference between JDK, JRE and JVM

JDK (Java Development Kit) JDK contains everything that will be required to  develop and run  Java application. D evelop   Tools such as the compilers  (javac.exe), Java application launcher (java.exe), Applet viewer a nd debuggers necessary for developing applets and applications.   JRE (Java Run time Environment) JRE contains everything required to  run  Java application which has already been compiled. It doesn’t contain the code library required to develop Java application. JVM (Java Virtual Machine) JVM is a virtual machine which work on top of your operating system to provide a recommended environment for your compiled Java code. JVM only works with bytecode. Hence you need to compile your Java application(.java) so that it can be converted to bytecode format (also known as the .class file). Which then will be used by JVM to run application. JVM only provide the environment It needs the Java code library to run applications....