Mongo - davidkhala/database GitHub Wiki
keywords: NoSQL, Developer Data Platform
MongoDB allows developers to think of their data similarly to how they structure their code
Atomicity
- writing and reading with a single document is an atomic operation natively
- transactions are only needed for multi-document updates that must be atomic
- white paper Uses GridFS to store larger assets natively
AI integrations
-
MongoDB integrates with popular AI frameworks like TensorFlow and PyTorch
- No built-in LLM integration like Oracle
- It only provides vector search in Atlas
Compared to
RDBMS
Compatibility
- SQL to MongoDB Concept Mapping
- JSON Relational Duality by BI Connector
- SQL to Aggregation Mapping
Compete
Migrate
- Tool
- source: Oracle, SQL Server, MySQL, PostgreSQL or Sybase ASE
- Released at Jun 22, 2023
NoSQL
- compatible DB in cloud
- AWS Dynamo
- Singlestore
- CouchBase
- Couchdb
Time Series
Compatibility
MongoDB offers sharding, columnar compression, densification, deletes, and gap-filling for time series collections.
Products
Enterprise Advanced (License)
Compass
- Work like mysql workbench, including
- Mongosh
- Aggregation Builder
- Visual explain Plans
Atlas
- Managed Mongo DB cluster in multi-cloud(aws,azure,gcp)
- The HTAP platform
Unique features compared to license
- Atlas Search
- Atlas Data Lake
- Atlas Online Archive
- Atlas Vector Search
- Atlas Stream processing
- GA in May 2, 2024
Atlas Data Federation
Query, transform, and aggregate data from multiple MongoDB Atlas databases and cloud object storage
Atlas SQL Interface
Atlas SQL Interface only supports read operations. You cannot write data to your Atlas cluster with the Atlas SQL Interface.
- Enabled by having a Data Federation instance
Deprecated: Data API
As of September 2024, Atlas Data API and HTTPS Endpoints are deprecated
- It will be removed on September 30, 2025.
Deprecated: Atlas Device SDK
As of September 2024, Atlas Device SDKs are deprecated.
- Atlas Device SDKs will be removed on September 30, 2025.
- It is made up of on-device database (Realm) and Atlas Device Sync
Realm
MongoDB Realm is a mobile database solution
Deprecated: Atlas Device Sync
entry point for App Services Authentication and User Management
Results of deprecation
- Authentication Triggers will no longer be executed when user events (for example: login or create) occur.
- App Services Wire Protocol is also deprecated alongside the Realm SDKs.
- Data Access Permissions (Rules and Roles)
History
- The company was established in 2007 by former executives and engineers from DoubleClick, which Google acquired and now uses as the backbone of its advertising products
- In summer of 2016, MongoDB Atlas was announced
- multi-document ACID transactions introduced in MongoDB 4.0
Key concerns
Easy to build with no training and get wrong
- Issue can arise too late!
- Performance impact
DBAs should be trained and certified
- Unless using Atlas
Partner works
migration
- Integrated Business Planning(IBP) with tooling for community: DynamoDB, Marklogic, CosmosDB, Cassandra to Atlas
- modernize towards Atlas
Limit
原来数据层基于 MongoDB 设计构建的,查询问题不少 ,后面成功迁移到 Elasticsearch 平台上,服务器数据量从15台降低到3台,查询性能还大幅度提升十倍,详细可阅读笔者另一篇文章《从 MongoDB 迁移到 ES 后,我们减少了80%的服务器》