Files

41 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
id: backend.mongodb.index
title: MongoDB
type: index
domain: backend
stack: [mongodb]
tags: [MongoDB, 文档数据库, NoSQL]
week: [14]
---
# 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/