Aggregation Optimization in MongoDB: Sorting With Indexes (Part 5)
Table of Contents Optimization Step 4: index-based sortsWrapping it upAnd why MongoDB might be a better relational database than you ever realized. Design reviews are one-on-one meetings where MongoDB experts deliver advice on data modeling best practices and application design ...
-
Aggregation Optimization in MongoDB: Data Duplication to Improve Read Performance (Part 4)
Table of Contents Optimization, Step 3: duplicating device name informationAnd why MongoDB might be a better relational database than you ever realized. Design reviews are one-on-one meetings where MongoDB experts deliver advice on data modeling best practices and application design …
-
Aggregation Optimization in MongoDB: Unnecessary Unwinds (Part 2)
Table of Contents And why MongoDB might be a better relational database than you ever realized.The video streaming service use case: profiles, devices, and device types (a recap)Optimization, Step 1: removing the $unwind stagesAnd why MongoDB might be a better …
-
Aggregation Optimization in MongoDB: A Case Study From the Field (Part 1)
Table of Contents And why MongoDB might be a better relational database than you ever realized.The video streaming service use case: profiles, devices, and device typesUnderstanding the query aggregation pipelineThe pipeline performance problemAnd why MongoDB might be a better relational …
-
Building an AI-Powered Operations Assistant with Spring AI and MongoDB Atlas — Part 2: Conversational Memory
Table of Contents The Problem with Stateless ChatWhat We Are BuildingTwo Different Kinds of MemoryMix & MatchShort-Term Memory: Keeping the Conversation CoherentLong-Term Memory: Carrying Knowledge Across SessionsMemory Consolidation: From Conversation to Durable FactThe Advisor Chain and Why Order MattersThe Atlas …
-
MongoDB as a Vector Database for AI Agents-MongoDB
Table of Contents Why should you use MongoDB for building AI agents?Understanding AI agentsBuilding a multi-agent application with MongoDBStep 1: Creating a vector search indexStep 2: Creating the TripStep 3: Induce a disruptionStep 4: Replanning Step 5: The Memory agents make …
-
What is Sharding in MongoDB and When Should You Use It?
Table of Contents A Practical Introduction to Horizontal Scaling1. Shards2. Config Servers3. Mongos RouterLarge datasetsHigh write throughputRapid data growthA Practical Introduction to Horizontal Scaling When building applications, most developers start with a single database server. At the beginning, everything works …
-
Exploring MongoT (Atlas Search)
Table of Contents Let’s dive in!Simple Example – Text SearchBreakdown Table (for a ~9ms $search aggregation path through MongoT)Local DebuggingSample DataInteresting Example – Faceted Text SearchLucene Indexing Strategy + Benefits over MongoD IndexesVector Search ExampleLocal Grafana MonitoringPerformance Java Code PackagesSo what …
-
AI-Powered Code Review Assistant: Automated Code Analysis with Spring AI and MongoDB
Table of Contents Prerequisites1. Project setup2. Storing and managing review patternsDefining the pattern modelCreating the repositoryBuilding the service layerExposing the REST endpoints3. Embedding patterns with Spring AI and MongoDB Atlas Vector SearchAdding Spring AI dependenciesGenerating embeddingsSeeding the pattern libraryCreating the …
-
Building an AI-Powered Operations Assistant with Spring AI and MongoDB Atlas — Part 1: RAG Foundation
Table of Contents The problemWhat we are buildingWhy RAG and why MongoDB AtlasHow the Pieces Fit TogetherGetting the Project RunningThe Ingestion PipelineThe Retrieval PipelineThe Atlas Vector Search IndexTrying It OutConclusion and What’s NextThis is the first article in a three-part …