MongoDB

How to start with Spring web-flux

Reading Time: 4 minutes Spring Boot provides very good support for building RESTful Web Services for enterprise applications. This blog will explain building RESTful web services using Spring Boot in detail with a pinch of reactive programming using web flux. I will mostly be walking through the code snippets which we can use to quickly start with the web flux without having to dive deep. It is like a Continue Reading

Programming Equipment in Dark

MarkLogic Vs MongoDB

Reading Time: 4 minutes The need to compare databases and to keep hunting for the perfect one seems never-ending. In this blog, We’re going to see the comparison between MarkLogic and MongoDB.  This blog helps you choose by looking into the differences and similarities between the two:  MarkLogic and MongoDB.  Although MarkLogic differs from a relational database in that MarkLogic was designed to not have schema requirements for data and Continue Reading

person holding pen pointing at graph

Axon Framework: Event Sourcing with MongoDB

Reading Time: 4 minutes If you want to build Microservices, You may prefer Axon, a Java-based framework. It provides utility to implement CQRS (Command Query Responsibility Segregation), Event Sourcing, and DDD (Domain Driven Design) architectural patterns while developing a software application. Axon facilitates the implementation of Command Handling, Event Routing, Event Sourcing, Snapshotting, and many more building blocks. It has very friendly APIs to use these implementations and build Continue Reading

Merge collections in MongoDB Version Less than 4.2 (or Amazon DocumentDB)

Reading Time: 4 minutes Using MongoDB (a document database designed for ease of development and scaling) with the older version or using Amazon DocumentDB (a scalable, highly durable, and fully managed database service for operating mission-critical MongoDB workloads compatible with MongoDB version 3.6 and version 4.0), they have some limited features and one of the limitation of using them is that they don’t allow the direct merge of two Continue Reading

Indexes in MongoDB

Reading Time: 4 minutes In any database, indexes in MongoDB support the efficient execution of queries. Without them, the database must scan every document in a collection or table to select those that match the query statement. If an appropriate index exists for a query, the database can use the index to limit the number of documents it must inspect. Keypoints for Indexing As you create indexes, consider the Continue Reading

How to Analyze query performance in MongoDB

Reading Time: 2 minutes Analyze query performance in mongodb may became complicated if we do not really know which part should be measured. Fortunately, MongoDB provides very handy tool which can be used to evaluate query performance: explain(“executionStats”). This tool provide us some general measurements such as number of examined document and execution time that can be used to do statistical analysis. The Database and Collection In this easy tutorial, Continue Reading

Can we do joins in MongoDB?

Reading Time: 3 minutes MongoDB is a NoSQL document database designed for ease of development and scaling. The best part about using a relational DBMS is that we can perform a wide range of relational queries on it. Doing joins on different tables is very easy. But, when we talk about MongoDB, the way data is stored here is quite different from any relational DBMS. How data is Stored Continue Reading

MEAN STACK: Installation (Part 2)

Reading Time: 3 minutes In the previous blog MEAN Stack: Introduction – Part 1, I have given a brief introduction of MEAN Stack and all the technologies used in it. In this blog, I’ll be discussing the installation of all the technologies one by one for Ubuntu. MongoDB: MongoDB is an open-source document database that provides high performance, high availability, and automatic scaling. The installation of MongoDB Community Edition Continue Reading

MEAN Stack: Introduction – Part 1

Reading Time: 2 minutes MEAN Stands for M – Mongo DB (database system) E – Express (back-end framework) A – Angular.js (front-end framework) N – Node.js (back-end runtime environment) What is MEAN? MEAN is a full-stack JavaScript solution that helps you build fast, robust, and maintainable production web applications. The stack used in mean is: Mongo DB: Mongo DB is an open-source, document database designed for ease of development and scaling. It is Continue Reading

MongoDB vs RDBMS and it’s Advantages

Reading Time: 5 minutes In this blog, I will introduce you with the MongoDB and will draw a comparison with RDBMS and highlight its advantages over the later. MongoDB is a No SQL database.  It is an open-source, cross-platform, document-oriented database written in C++. MongoDB is developed by the company named 10gen. They define MongoDB as: “Mongo DB is scalable, open source, high performance, document-oriented database.” Why MongoDB? In this section, we will Continue Reading

Getting started with MongoDB

Reading Time: 3 minutes Hi everyone! in this blog, I will try to explain what is MongoDB and why to use MongoDB What is MongoDB? MongoDB is one of the powerful NoSql DataBase. It does not use the usual rows and columns that we are so much associated with the relational database management. It is an architecture that is built on collections and documents. This database uses a document Continue Reading

CRUD in NodeJs with MongoDB: Explanations

Reading Time: 3 minutes Here we are, in this post we are going to create a CRUD application in NodeJs with mongoDB as database and ejs as a templating engine. You can download the application from here: github Before diving in to this post please checkout my previous post, then you will get to know why i choose ejs as a templating engine. In next post we will use Continue Reading

ReactiveMongo

On the go with ReactiveMongo

Reading Time: 3 minutes Hi Guys, In today’s blog we’ll be discussing about ReactiveMongo. It is a Scala driver that provides fully non-blocking and asynchronous I/O operation. It is designed to avoid any kind of blocking request to your database. Every operation returns immediately, freeing the running thread and resuming execution when it is over. Before starting using reactive mongo, one should have an understanding about mongoDb. So let’s Continue Reading