最后的思考

Python 中的 MongoDB 入门

Filip Schouwenaars

Machine Learning Researcher

第 1 章回顾

  • 关系型数据库 vs. MongoDB
  • 本地连接 MongoDB
  • 查询数据库与集合
  • .find().find_one() 获取文档
  • 简单过滤,如 { "title": "Inception" }
Python 中的 MongoDB 入门

第 2 章回顾

  • 使用 $exists$in$or$and 过滤文档
  • limit()sort() 和投影控制输出
  • .count_documents() 统计匹配文档数
Python 中的 MongoDB 入门

第 3 章回顾

  • 插入新文档:.insert_one().insert_many()
  • 更新文档:.update_one().update_many()
  • 替换文档:replace_one()
  • 删除文档:delete_one()delete_many()
Python 中的 MongoDB 入门

第 4 章回顾

  • 结合 Python 类型与 pydantic
  • 使用 MongoDB 内置架构校验
  • 自信地管理文档
  • .bulk_write() 组合操作以提效
Python 中的 MongoDB 入门

下一步去哪儿

Python 中的 MongoDB 入门

恭喜您!

Python 中的 MongoDB 入门

Preparing Video For Download...