Home » Tag Archives: MongoDB (page 5)

Tag Archives: MongoDB

How to Use Projection in MongoDB?

In mongodb, projection means selecting only necessary data rather than selecting the whole data of a document. If a document has 5 fields and you need to show only 3, then select only 3 fields from it. There are a few projection operators that mongodb provides and helps us reach that goal. Let us discuss about those operators in detail below. ...

Read More »

Evaluating persistent, replicated message queues

Message queues are useful in a number of situations; for example when we want to execute a task asynchronously, we enqueue it and some executor eventually completes it. Depending on the use case, the queues can give various guarantees of message persistence and delivery. For some use-cases, it is enough to have an in-memory message queue. For others, we want ...

Read More »

MongoDB and Grails

So recently, I had a requirement to store unstructured JSON data that was coming back from a web service. The web service was returning back various soccer teams from around the world. Amongst the data contained in most of the soccer teams was a list of soccer players, who were part of the team. Some of the teams had 12 ...

Read More »

Rocking with mongodb on spring boot

I’m a fan of Spring Boot and here’s my mongodb example project on Spring Boot. Most of the mongodb example projects are so basic that you won’t go far with them. You can search for plain Spring Data examples but they can get much complex than you’d like. So here’s mine. Here’s the pom I’ll use.         ...

Read More »

MongoDB 2.6 is out

Introduction MongoDB is evolving rapidly. The 2.2 version introduced the aggregation framework as an alternative to the Map-Reduce query model. Generating aggregated reports is a recurrent requirement for enterprise systems and MongoDB shines in this regard. If you’re new to it you might want to check this aggregation framework introduction or the performance tuning and the data modelling guides. Let’s ...

Read More »

Single Page Application with Angular.js, Node.js and MongoDB (MongoJS Module)

The current post is a proof of concept towards making a web application with a Javascript based Web Server. This technological stack is popularly known as MEAN Stack. To make this possible, we have selected the following technologies Angular.js for client side development – Single Page Application Cross Domain Communication in between Angular.js and Node.js Node.js for server side development Rest ...

Read More »

MongoDB and the fine art of data modelling

Introduction This is the third part of our MongoDB time series tutorial, and this post will emphasize the importance of data modelling. You might want to check the first part of this series, to get familiar with our virtual project requirements and the second part talking about common optimization techniques. When you first start using MongoDB, you’ll immediately notice it’s ...

Read More »

A beginner’s guide to MongoDB performance turbocharging

Introduction This is the second part of our MongoDB time series tutorial, and this post will be dedicated to performance tuning. In my previous post, I introduced you into our virtual project requirements. In short we have 50M time events, spanning from the 1st of January 2012 to the 1st of January 2013, with the following structure:       ...

Read More »

MongoDB time series: Introducing the aggregation framework

In my previous posts I talked about batch importing and the out-of-the-box MongoDB performance. Meanwhile, MongoDB was awarded DBMS of the year, so I therefore decided to offer a more thorough analyze of its real-life usage. Because theory is better understood in a pragmatic context, I will first present you our virtual project requirements. Introduction     Our virtual project ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns