Home
Jakub Prądzyński's Blog
Cancel

Welcome!

This is my first blog post. It won’t be long. I just want to say hello! About me Information about me is available on the subpage ABOUT so I won’t duplicate it. Mainly because that page will be u...

Setting readPreference option in Spring Data MongoDB projects

Introduction In previous post I wrote about MongoDB optimization by reading from secondary nodes. In this post I will show you how to use this option in Spring Boot project. Using secondary read...

How to easily optimize replica set resource consumption & performance in MongoDB?

Setup I created new free MongoDB cluster on Atlas and loaded sample data into this cluster. As you can see cluster: has version 5.0.13 is deployed on GCP / Belgium contains 3 nodes in R...

Be careful with saveAll method in spring-boot-data-mongodb!

Introduction When we work in project based on Spring Framework and need to access database we will probably use Spring Data for this. One of the benefits of this approach is that we can only conf...

Creating MongoDB case insensitive index in Spring based project

Example problem to solve One of the most popular class in our services is User. The user may enter his nickname during registration. Let’s assume that our business requirement is: user should ...