đ From Chaos to Order: How Mongock & Friends Keep Your DB in Shape Automatically! ☁️ The “Cloudyrock” Mystery You might have seen this in a Spring Boot project: @ChangeLog public class DatabaseChangelog { @ChangeSet(order = "001", id = "createIndex", author = "anand") public void createIndex(MongoTemplate mongoTemplate) { mongoTemplate.indexOps("users") .ensureIndex(new Index().on("email", Sort.Direction.ASC).unique()); } } And wondered: đ "Wait… where’s my CREATE INDEX script? Who’s applying this? And why is it happening without me touching the DB?" That’s Mongock in action — made by the Cloudyrock team. It’s basically the database time machine for Java projects. No flux capacitors, just clever scanning, execution, and bookkeeping. đ How It Works (From Start to End) 1️⃣ Scan Your Change Logs You specify in application.properties : mong...
A cozy space where I share my daily Java learnings, issues, and solutions.