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

image

Compared to

RDBMS

Compatibility

Compete

Migrate

  • Tool
    • source: Oracle, SQL Server, MySQL, PostgreSQL or Sybase ASE
    • Released at Jun 22, 2023

NoSQL

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 image

Unique features compared to license

  • Atlas Search
  • Atlas Data Lake
  • Atlas Online Archive
  • Atlas Vector Search
  • Atlas Stream processing

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

announcement

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)

Alternative Solutions

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

Limit

原来数据层基于 MongoDB 设计构建的,查询问题不少 ,后面成功迁移到 Elasticsearch 平台上,服务器数据量从15台降低到3台,查询性能还大幅度提升十倍,详细可阅读笔者另一篇文章《从 MongoDB 迁移到 ES 后,我们减少了80%的服务器》