phase 5 part 3: mongodb, elasticsearch hybrid search, data-pipeline, nodejs BFF topics with verified examples

This commit is contained in:
Shikui Wang committed 2026-10-23 16:38:52 +08:00
1 parent 9eeb10aede
commit 075872e31e
27 files changed
+2405 -52

No files matched your search

+28 -3
View File
@@ -4,12 +4,37 @@ title: MongoDB
type: index
domain: backend
stack: [mongodb]
tags: []
tags: [MongoDB, 文档数据库, NoSQL]
week: [14]
---
# MongoDB
文档模型、查询与聚合、索引、何时选 MongoDB 而不是关系库。
文档数据库的基础:建模、索引、聚合、事务、变更流。BOSS直聘 2026-10-23 的调研中有岗位提到,定位为“了解并能用”,主库仍以 PostgreSQL 为主。
> 本专题建设中:课程、企业场景、面试题和示例代码会陆续补充。
## 学习路线
| 顺序 | 课程 | 级别 | 预计 |
| --- | --- | --- | --- |
| 1 | [MongoDB 基础:文档建模(嵌入还是引用)、索引与 ESR、聚合、事务和变更流](01-document-model.md) | 基础 | 3 小时 |
## 企业场景
- [AI 客服会话存储:海量对话记录的建模、查询、归档和同步](scenarios/conversation-store.md)
## 面试题
- [MongoDB 面试题](interview.md)
## 示例代码
- [examples/conversations](examples/conversations/):Schema 校验、ESR 索引 + explain、聚合、幂等 upsert、事务、变更流(MongoDB 8.2 单节点副本集实际运行通过)
## 在 16 周计划中
- [第 14 周:后端扩展与部署](../../../plan/week14-backend-extend-deploy.md)
## 官方资料
- https://www.mongodb.com/docs/manual/
- PyMongo:https://www.mongodb.com/docs/languages/python/pymongo-driver/current/