The article argues MongoDB's positioning is awkward: early versions lacked persistence and competed with Redis, but Redis now dominates caching with alternatives like TiKV and Hazelcast; MongoDB's JSON advantage is eroded by PostgreSQL and Redis ReJSON; for OLTP it cannot match MySQL-compatible distributed databases like TiDB; for OLAP it is outclassed by modern lakehouse engines such as ClickHouse and Doris.
Zhihu shares its production-grade architecture for a multi-tenant Agent Memory service that combines Mem0's fact extraction and lifecycle management with MongoDB's vector and full-text search, enabling multiple specialized agents to accumulate, isolate, and retrieve long-term operational memories reliably.
This article analyzes why MongoDB adoption lags behind Redis in China, citing MongoDB's ambiguous positioning between cache and database, operational complexity, weak JOIN support, sharding difficulties, lack of SQL compatibility, and a scarcity of specialized DBAs as key factors.
A MongoDB Community Champion reports from MongoDB.local NYC, analyzing how the sudden CEO change contrasts with the cohesive launch of MongoDB 9.0, Atlas Infinite, and Atlas Agent Engine as a unified AI data platform strategy.
This MongoDB cheat sheet guides SQL developers through the mindset shift to NoSQL, covering concept mappings, CRUD operations, indexing, aggregation pipelines, and execution plan analysis with practical code examples for each operation and key pitfalls to avoid.
This article introduces MongoDB as an open-source document database, explains NoSQL categories, details MongoDB's data model (fields, documents, collections, databases) with relational database analogies, and provides step-by-step installation instructions for MongoDB 7.0 on CentOS 7 via yum and manual RPM.
This tutorial builds a task manager with FastHTML, MongoDB, Pydantic, and HTMX, demonstrating async CRUD operations, partial HTML updates via HTMX, and clarifying the difference between request-driven partial refreshes and true multi-client real-time synchronization requiring MongoDB Change Streams and WebSockets.
This article covers MongoDB document modeling vs relational, embedding vs referencing strategies, Spring Data MongoDB Repository and MongoTemplate usage, aggregation pipelines for analytics, multi-document transactions with avoidance patterns, composite indexing principles, and connection pooling with cursor-based pagination for high-concurrency Spring Boot applications.
Databasus is an open‑source backup management platform that unifies PostgreSQL, MySQL, MariaDB and MongoDB backups with a web UI, offering logical, physical and incremental backups, automated scheduling, AES‑256‑GCM encryption, multi‑cloud storage, RBAC collaboration, and optional agents for secure, out‑bound connections.
This article walks through a production‑grade architecture that uses Spring Boot, Kafka, Redis, and MongoDB to ingest, buffer, order, and store high‑frequency vehicle GPS data from hundreds of thousands of devices while guaranteeing low latency, scalability, fault‑tolerance, and accurate replay capabilities.
MongoDB’s physical backup can cause hidden nodes to balloon in disk usage, but by analyzing WiredTiger’s space‑reclamation process and introducing a checkpoint‑release API, the team reduced backup‑induced disk expansion from up to 200% down to under 10%, saving hundreds of gigabytes and cutting backup time by over 40%.
This article provides a comprehensive, enterprise‑level comparison of PostgreSQL and MongoDB, outlining when each database fits business needs, a five‑dimensional decision framework, mixed‑architecture patterns, practical schema and indexing examples, and guidance on performance, stability, and migration considerations.
This article provides a complete, step‑by‑step guide to MongoDB shell commands—including show dbs, use, db, collection operations, indexing, aggregation and statistics—complete with syntax, example outputs and practical usage notes for developers and administrators.
This step‑by‑step guide shows how to install MongoDB 7.0 on Linux, configure a production‑grade replica set, enable keyfile‑based internal authentication, create RBAC users, restrict network access, set system limits, schedule backups, and apply performance‑tuning and monitoring practices to keep the database secure and reliable.
By sending a legitimate JSON payload that injects MongoDB operators such as $gt or $ne into the password field, attackers can trick a Node.js‑Express login endpoint into authenticating any user, illustrating how NoSQL injection bypasses authentication and how to detect and mitigate it.
This extensive guide redesigns Spring Boot data‑access for high‑traffic e‑commerce, explaining why traditional JPA‑Redis‑Elasticsearch thinking fails, then detailing a multimodal architecture that assigns strong‑consistency, hot‑read, document, and search responsibilities to MySQL, Redis, MongoDB and Elasticsearch, with production‑grade code, CDC pipelines, distributed‑transaction patterns, caching strategies, observability, and cloud‑native deployment.
The FastGPT AI Agent platform suffers a critical NoSQL injection (CVE‑2026‑40351) that lets attackers bypass authentication by injecting MongoDB operators into the password field, granting admin or root access, and the article details the flaw, its impact, proof‑of‑concept, and mitigation steps.
This article introduces MongoDB fundamentals, walks through Windows installation, shows how to integrate Spring Boot with MongoDB via Maven, configures connection settings, demonstrates both MongoRepository and MongoTemplate usage with full code examples, and compares MongoDB to Redis for typical use cases.
This article explains how to integrate MongoDB into a Spring Boot application, covering suitable use cases, environment setup, core dependencies, configuration, entity mapping, CRUD operations via MongoRepository and MongoTemplate, indexing, performance considerations, and a concise comparison with MySQL.
This article walks through building a production‑grade system for storing and querying massive GPS trajectory data with MongoDB, covering data modeling choices, index strategies, sharding, query patterns, performance tuning, and best‑practice checklists to handle billions of points efficiently.
This guide walks you through building a production‑grade e‑commerce order service using the Go‑based Kratos microservice framework, covering environment setup, protobuf contract definition, code generation, layered architecture, dependency injection, configuration, deployment, testing, and performance optimizations for cloud‑native backends.
In under a month the author migrated more than 100 heterogeneous tables from MySQL and MongoDB to PostgreSQL across isolated networks by automating Navicat's import/export logic, streaming data, handling special characters, configuring flexible sync strategies, and using OSS as a bridge to avoid OOM and lock‑contention.
This article explains why multi‑source data fragmentation hurts service code, introduces Apache Calcite as a query‑abstraction layer that decouples data location from query logic, and provides step‑by‑step Spring Boot 3 integration, practical code samples, common pitfalls, performance tips, and real‑world scenarios.
When a single‑node MongoDB instance can no longer handle tens of millions of records, this guide walks you through the theory, architecture, deployment steps, shard key strategies, performance tuning, monitoring, backup, and troubleshooting needed to build a robust, production‑grade sharded cluster.
This article explains Tencent Cloud MongoDB’s backup and restore capabilities, the challenges posed by modern game workloads, and how the industry‑first key‑based flashback feature provides second‑level, fine‑grained, non‑disruptive data recovery, dramatically improving reliability and speed for game operators.
This guide outlines a complete backend architecture for high‑volume GPS data, detailing the overall system flow, technology stack choices, Maven dependencies, data models, Kafka producer/consumer configurations, SpringBoot controllers, asynchronous processing, Redis caching, health checks, Docker deployment, and performance tuning recommendations to ensure stability and scalability.
The article explains the CVE‑2025‑14847 MongoDB vulnerability, detailing how crafted BSON with a falsified document length triggers memory over‑read, demonstrates a reproducible PoC, compares it to the SSL Heartbleed bug, and offers mitigation advice for affected deployments.
This guide explains why traditional Retrieval‑Augmented Generation (RAG) struggles with precision, introduces the Model Context Protocol (MCP) as a standardized way for large language models to interact with external data sources, and provides step‑by‑step instructions for integrating MCP with MongoDB using Cherry Studio and VSCode +Cline.
This article explains why modern enterprises should avoid single‑database solutions, compares PostgreSQL and MongoDB across core philosophy, technical capabilities, ecosystem extensions, and cost, and provides a decision framework, real‑world case studies, and a hybrid architecture blueprint for scalable, low‑risk systems.
This article explains the implementation, configuration, and testing strategies for Laravel‑MongoDB queue timeout control, showing how to configure global, job‑level, and runtime timeouts, write unit and integration tests, and apply best‑practice tuning to keep distributed systems stable.
This article walks through the strengths, typical use cases, and Python connection code for relational databases (MySQL, PostgreSQL, SQLite), NoSQL stores (MongoDB, Redis, Neo4j), cloud‑native options (DynamoDB), and emerging vector databases such as Milvus, helping you decide which fits your project.
This guide explains how to store and query GPS trajectory data in MongoDB using time‑series collections or traditional collections, covering schema design, indexing, sharding, TTL expiration, and practical query examples for high‑performance, schema‑free applications.
Learn how to connect to MongoDB using PyMongo, create databases and collections, and perform essential CRUD operations—including inserting single or multiple documents, querying with filters and regex, updating records with update_one and update_many, counting, sorting, pagination, and deleting—complete with Python code examples.
This tutorial walks through installing MongoDB and PyMongo, establishing a connection, selecting databases and collections, and demonstrates how to insert, query, count, sort, skip, limit, update, and delete documents using both legacy and modern PyMongo methods, complete with code examples and operator references.
This guide details a step‑by‑step process for migrating a high‑traffic MongoDB app to a dedicated instance, covering full backup, real‑time incremental sync via Change Streams, compensating for missed changes, handling operation ordering, and ensuring zero downtime throughout.
This comprehensive guide compares MySQL, PostgreSQL, and MongoDB across core features, transaction models, indexing, scalability, and real‑world use cases, offering a step‑by‑step selection method, detailed pros and cons, and a practical decision flowchart to help engineers pick the right database for their projects.
This article explains the structure and resources of the MongoDB global community, details the elite MongoDB Champions program, outlines how to become a Champion, and highlights the professional and technical benefits of participation for developers and database professionals.
This comprehensive MongoDB tutorial covers its core concepts, suitable scenarios, basic CRUD operations, document structure, query syntax, indexing, aggregation framework, advanced features like MapReduce and transactions, Python integration, real‑world case studies, and provides command summaries with practice exercises for beginners to intermediate users.
This guide walks you through the core MongoDB commands—including creating and switching databases, listing databases, inserting, updating, querying (with filters, pagination, distinct, and fuzzy search), counting records, and deleting documents—providing concise examples for each operation.
This comprehensive guide explains MongoDB sharding fundamentals, walks through step‑by‑step deployment of config servers, shard replica sets, and mongos routers, compares range, hash, and compound shard keys, and provides performance tuning, security, backup, monitoring, and troubleshooting best practices for production‑grade clusters.
This article presents a comprehensive migration plan for a legacy MongoDB‑based system, detailing scope analysis, dual‑write implementation, data source selection, bulk and incremental migration strategies, and a three‑pronged online approach (monitoring, gray release, rollback) to ensure a smooth cut‑over without service disruption.
iQIYI’s points platform, serving multiple business lines and billions of users, migrated from a dual MySQL‑MongoDB architecture to a single MongoDB 7.0 cluster to overcome performance bottlenecks, ensure strong consistency, simplify operations, and support unlimited horizontal scaling for future growth.
This article discusses the motivations, comparative analysis, and practical steps for refactoring a Java backend project by replacing MongoDB with MySQL, covering pain points, selection criteria, schema redesign, entity mapping, and sample query code.
LangChain4j 1.0.0 brings official OpenAI SDK support, GitHub Models integration, expanded database and vector store compatibility, customizable HTTP clients, and clear migration steps for renamed interfaces and streaming methods, marking a major milestone for Java AI development.
This tutorial introduces NoSQL concepts and provides step‑by‑step Python code examples for installing, connecting, inserting, querying, updating, and deleting data in both MongoDB and Redis, highlighting their suitable use cases and key differences.
Facing massive query latency, deadlocks and costly vertical scaling, our team abandoned a textbook‑perfect PostgreSQL setup, tried extensive SQL optimizations, added Redis caching and read replicas, and finally migrated critical order services to MongoDB, achieving five‑fold capacity, zero downtime and significant cost savings.
This article introduces several widely used Visual Studio Code extensions for database management—including SQLTools, MSSQL, Database Client, DBCode, DevDb, and MongoDB for VS Code—detailing their features, supported databases, installation steps, and marketplace links to help developers choose the right tool for their workflow.
This article presents a complete, step‑by‑step plan for migrating a legacy MongoDB‑based system to alternative data stores—including MySQL, Elasticsearch, and JD’s JImKV—while ensuring zero service interruption through careful scope analysis, DAO refactoring, dual‑write synchronization, gray‑release rollout, and robust monitoring and rollback mechanisms.
This article narrates a dramatic front‑end takeover during a high‑traffic promotion, then provides a step‑by‑step guide to building a Node.js backend service with Express, MongoDB, JWT authentication, and deployment considerations, illustrating performance trade‑offs between Java and Node.js.
This tutorial explains how to overcome the limitations of Retrieval‑Augmented Generation by using the Model Context Protocol (MCP) together with a MongoDB database, providing detailed setup steps, configuration examples, and performance comparisons that demonstrate significantly higher query precision for large language models.
This article explains why MongoDB sharding is required for scaling storage and performance, describes the shard, config server, and mongos components, outlines range, hash, and compound sharding strategies, and provides practical guidance on shard key selection, balancing, backup, tuning, and security.
This article provides a comprehensive overview of MongoDB's configuration file, detailing system log options, process management, network settings, security parameters, storage engine configurations, slow query profiling, replication, sharding, and mongos-specific settings, with explanations of each option and recommended defaults.
This comprehensive guide walks you through MongoDB replica set fundamentals, member roles, architecture, and configuration commands, then dives into sharding concepts, cluster components, chunk management, shard key selection, deployment steps, balancing operations, and practical troubleshooting tips, all illustrated with clear code examples and diagrams.
This article presents a complete, step‑by‑step migration plan for a legacy MongoDB‑based system, covering scope analysis, data‑store selection, DAO refactoring, dual‑write synchronization, bulk and incremental data migration, and the three‑pronged deployment strategy of monitoring, gray‑release and rollback to ensure a smooth cut‑over without service disruption.
This article presents a complete MongoDB migration solution, detailing the migration rhythm, code refactoring using a decorator pattern, data source replacement with JImKV, MySQL and ES, bulk and incremental data transfer strategies, and deployment safeguards such as monitoring, gray release, and rollback to ensure a seamless cut‑over without service disruption.
This article details Zhihu's security anti‑fraud system challenges with its self‑managed MongoDB cluster, the strategic move to Alibaba Cloud MongoDB services, the step‑by‑step migration plan, and the operational and performance benefits achieved after the successful cloud transition.
The article analyzes the storage, sharding, backup, and operational pain points of Zhihu's self‑operated MongoDB cluster, proposes cloud‑based architectural and procedural solutions, and details a step‑by‑step migration plan that ensures zero‑downtime, improved stability, and cost efficiency.
This article provides a complete Bash script that automates downloading, extracting, configuring, and starting MongoDB on Linux systems, handling OS detection, prerequisite installation, file preparation, and color‑coded status messages for success, failure, and warnings.
This tutorial demonstrates how to analyze a fund ranking website, construct dynamic URLs, extract six‑digit fund codes, crawl fund holding pages with requests and Selenium, store the results in MongoDB, and finally process the data to identify the most frequently held stocks across thousands of funds.
This article introduces the mongo2file Python library that converts MongoDB collections into various table formats such as CSV, Excel, JSON, Pickle, Feather, and Parquet, explains its PyArrow dependency, shows installation and usage examples, discusses performance bottlenecks, and provides API reference details.
Tencent Meeting optimized its “My Recordings” list by replacing offset pagination with cursor‑based seeks, implementing a two‑layer cache separating ID lists from record details, choosing MongoDB for multi‑source aggregation, and adding reliable Kafka‑driven sync, cutting latency from 308 ms to 70 ms while supporting over 700 QPS.
Effective logging is crucial for developers to diagnose system errors, and this article compares traditional monolithic file‑based logging with modern microservice‑oriented solutions such as ELK, MongoDB, and Loki, outlining their architectures, advantages, and selection criteria.
This article explains MongoDB's aggregation pipeline fundamentals, details each stage and operator, walks through a comprehensive example that calculates product sales, customer averages, and top customers using $group, $sort, $limit, $lookup and $unwind, and outlines common use cases.
This article outlines MongoDB’s core features, its layered technical architecture—including storage, data model, query language, indexing, replication, sharding, and transactions—and explains the three cluster deployment modes with detailed roles and request flow for sharded clusters.
The article chronicles the evolution of database technology from early hierarchical and network models through relational, column‑store, document, key‑value, graph, time‑series, HTAP, and finally vector databases, detailing each system’s architecture, strengths, limitations, typical uses, and future trends toward specialization, distributed cloud‑native designs, and AI‑driven applications.
This guide explains the MariaDB MaxScale NoSQL protocol module, its key features, typical use cases, step‑by‑step installation, configuration, and how to perform MongoDB‑compatible operations that are transparently stored in MySQL/MariaDB.
This guide walks through the step‑by‑step process of downloading, compiling, and enabling the MongoDB extension for PHP on a Linux server, covering both online and offline installation methods and how to verify the extension is loaded successfully.
This guide explains how to export MongoDB collections to JSON, load them into DuckDB, generate compatible table schemas, and then transfer the data efficiently into MySQL using DuckDB as an intermediate processing engine.
MongoDB reported a 13% revenue rise to $478.1 million in Q2 2025, highlighted a major win over PostgreSQL at Fanatics Betting & Gaming, and emphasized its flexible JSON‑like architecture, horizontal scaling, and sharding advantages while noting ongoing competition and a revised growth outlook.
This comprehensive guide walks you through MongoDB fundamentals, installation checks, service management, user authentication, database and collection creation, and essential CRUD commands, providing clear examples and code snippets to help you efficiently manage and query your NoSQL data.
This guide explains why upgrading from Spring Boot 1.5 to 2.1 is essential for MongoDB transaction management, outlines version requirements, highlights key feature changes, and provides step‑by‑step instructions with code examples to enable reliable transactional operations in a Spring‑based backend.
This guide demonstrates how to create a simple Go web API using the Gin framework, define a recipe data model, implement CRUD endpoints backed by MongoDB, add Redis caching for list queries, and provide a complete runnable example with testing scripts.
Explore nine major database technologies—from traditional relational MySQL to NoSQL Redis, columnar HBase and ClickHouse, document-oriented MongoDB, search engine Elasticsearch, graph Neo4j, time‑series Prometheus, and vector Milvus—plus practical best‑practice guides, real‑world polyglot persistence scenarios, and recommended resources for mastering modern data storage.
This article provides an in‑depth overview of nine major database categories—including relational, key‑value, columnar, document, graph, time‑series, and vector databases—detailing their strengths, weaknesses, best practices, and typical application scenarios, and explains how polyglot persistence combines multiple databases for optimal performance and scalability.
This article provides an in‑depth survey of nine database categories—including relational, key‑value, columnar, document, graph, time‑series, and vector databases—detailing their architectures, advantages, disadvantages, best‑practice recommendations, typical use cases, and how they can be combined in polyglot persistence solutions.
This article compares MongoDB’s document‑oriented storage with PostgreSQL’s relational model for generative AI workloads, detailing how JSON, JSONB, and BSON affect insert and read performance across a series of benchmarks on identical hardware.
A senior developer recounts how a Fortune‑500 project's ill‑planned outsourcing to a vendor using a massive MongoDB JSON store led to performance bottlenecks, hidden limits, and a frantic internal rewrite that forced the team to work through holidays and ultimately deliver a successful release.
Infisical’s engineering team recounts their three‑month journey of moving from MongoDB to PostgreSQL, detailing the motivations, technical challenges, ORM choices, migration planning, execution steps, and the performance and reliability gains achieved after the switch.
This article provides a comprehensive step‑by‑step guide to setting up MongoDB replica sets and sharded clusters, explaining the architecture, member roles, configuration files, initialization commands, and operational procedures for ensuring data redundancy, high availability, and horizontal scaling.
This article explains query separation as a strategy to accelerate slow large‑table queries by duplicating data to a dedicated query store, outlines when to adopt it, compares synchronous, asynchronous, and binlog approaches, discusses storage choices such as MongoDB, HBase, Elasticsearch, and addresses consistency and MQ challenges.
Infisical, an open‑source secret‑management platform, migrated its data store from MongoDB to PostgreSQL to overcome transaction, schema, and cloud‑provider limitations, detailing the decision process, ORM choice, migration planning, execution steps, and the performance and usability benefits achieved.
This article provides a comprehensive walkthrough of MongoDB's configuration file, detailing system log options, process management, network parameters, security settings, storage engine configurations, slow query profiling, replication, sharding, and mongos parameters, along with explanations of each option and recommended defaults.
This comprehensive tutorial walks you through MongoDB replica set concepts, member roles, primary election, configuration commands, as well as sharding fundamentals, shard key selection, cluster deployment, balancer management, and practical code examples for building a production‑grade database cluster.
This guide explains how to use Alibaba Cloud Function Compute to inspect Kafka message keys and automatically perform insert, update, or delete operations on MongoDB, detailing the architecture, advantages, prerequisites, step‑by‑step deployment, and current limitations.
This tutorial walks you through installing MongoDB on three CentOS 7.9 servers, configuring a replica set with a master and two slaves, creating admin and test users, securing communication with key files, and verifying failover by stopping the primary node, all illustrated with commands and screenshots.
This article explains how a high‑throughput, low‑latency flight search system handles billions of daily requests by employing multi‑level caching, distributed Redis and MongoDB stores, AI‑driven TTL optimization, and advanced load‑balancing techniques such as pooling and overload protection.
This tutorial demonstrates how to create a real-time Linux system resource monitoring web page using Flask for backend APIs, MongoDB for data storage, and Vue.js for a dynamic frontend that updates every 30 seconds.
A sudden Redis outage caused a shopping homepage to take 20 seconds to load, prompting a rapid analysis of data‑volume growth, a post‑mortem of the fallback logic, and the design of a combined local‑cache, MongoDB, and database strategy to restore fast, reliable service.
This article presents a comprehensive solution for decoupled operation‑log recording in multi‑project backend systems, detailing the design goals, technology choices such as AOP, annotations, SpringEL and MongoDB, the system architecture, implementation steps, a practical case study, and future enhancements.
Vivo replaced its fragile Python‑Celery backup system on GlusterFS—characterized by two‑day MySQL backups, single‑point failures, and weak security—with a Java‑based architecture using a Redis cluster and object storage, adding automated copying, verification, point‑in‑time recovery and migration, cutting backup windows to about ten hours and achieving near‑100 % success.
This article examines how generative AI chatbots such as Google Bard, Bing Chat, and ChatGPT respond to database downgrade queries for MongoDB and MySQL, highlighting inaccurate or fabricated answers, providing correct downgrade procedures, and stressing the need for careful verification when relying on AI assistance.
A recent e‑commerce incident caused the home page to take 20 seconds to load due to a Redis memory overload, and the team resolved it by expanding memory, redesigning data structures, and implementing a layered caching strategy with local cache, MongoDB, and fallback mechanisms.
This article explains how to migrate a 240 GB MongoDB replica set by performing a full backup with oplog, extracting the incremental oplog timestamp, and then applying incremental backup and restore scripts to minimize downtime, while providing detailed shell commands and precautionary tips.
This article compares MySQL and MongoDB, outlining their core concepts, shared features such as open‑source licensing and indexing, and key differences in data model, scalability, performance, flexibility, and security, while summarizing pros and cons and recommending suitable application scenarios for each database.
This tutorial walks you through adding MongoDB dependencies to a Spring Boot project, configuring the connection, defining entity and repository classes, implementing service and controller layers, and optionally setting up sharding or replica‑set architectures for scalable data management.
This article explains MongoDB's three cluster architectures—deprecated Master‑Slave replication, the highly available Replica Set with automatic failover, and horizontal scaling Sharding—detailing their roles, data flow, advantages, limitations, and operational considerations for building reliable, scalable databases.
This article explains the concepts and advantages of NoSQL databases, categorizes the four main types, introduces MongoDB’s data model and components, and provides step‑by‑step instructions for installing MongoDB 7.0 on CentOS 7 using both yum repository and manual RPM packages.