MongoDB Index Tutorial

MongoDB Index fundamentals If you have ever worked with any database (SQL or NoSQL), you probably know that the purpose of creating indexes is to speed up the queries at the cost of create/update/delete operations. MongoDB is no exception. MongoDB uses B-Tree as indexes’ data structure. This data structure offers fast queries. However, since the … Read more

MongoDB Aggregation Framework Cheat Sheet

Importing sample data This post is a quick introduction to the MongoDB Aggregation Framework. It’s a part of a mini-series called Mongo DB Cheatsheets To follow the tutorial, you need to import the following data: This sample is a list of 5 rich people from two families. The data contains their net worth and their … Read more

MongoDB Basic CRUD Cheat Sheet

If you have been doing software development for some time, you’d probably know what CRUD is. CRUD stands for CREATE-READ-UPDATE-DELETE. Those are the day to day task we do on databases, regardless of their types. Let’s get started by using a new database. As you may remember from the previous post, there is no “create” … Read more

Getting started with Git

Git basic concepts Repository This is where we store our code. On our local machine, a repository is a directory contain code. Version control To put it short, version control systems are tool to keep track of code changes. It helps users easily investigate, view the state of the whole repository at a specific commit. … Read more

Spring Cloud Config Server Complete Guide (w/ Examples)

Overview of Spring Cloud Config Server Spring Cloud Config server is a REST application that is built on top of Spring Boot. The main purpose of a config server is to store the configurations for all services in an application (think microservices). Thus, each service doesn’t need to store its configurations. They just need to … Read more