- Mastering MongoDB 3.x
- Alex Giamas
- 163字
- 2021-08-20 10:10:49
Schema Design and Data Modeling
The second chapter of our book will focus on schema design for schema-less databases such as MongoDB. This may sound counterintuitive; in fact there are considerations that we should take into account when developing for MongoDB.
The main points of this chapter are:
- Schema considerations for NoSQL
- Data types supported by MongoDB
- Comparison between different data types
- How to model our data for atomic operations
- Modeling relationships between collections:
- One to one
- One to many
- Many to many
- How to prepare data for text searches in MongoDB
- Ruby:
- How to connect using the Ruby mongo driver
- How to connect using Ruby's most widely used ODM, Mongoid
- Mongoid model inheritance management
- Python:
- How to connect using the Python mongo driver
- How to connect using Python's ODM, PyMODM
- PyMODM model inheritance management
- PHP:
- Sample code using annotations-driven code
- How to connect using the MongoDB PHP driver
- How to connect using PHP's ODM, Doctrine
- Model inheritance management using Doctrine
推薦閱讀
- 過程控制工程及仿真
- WOW!Illustrator CS6完全自學寶典
- 2018西門子工業專家會議論文集(上)
- Ceph:Designing and Implementing Scalable Storage Systems
- 數據庫系統原理及應用教程(第5版)
- Kubernetes for Serverless Applications
- 網絡服務搭建、配置與管理大全(Linux版)
- 自動化生產線安裝與調試(三菱FX系列)(第二版)
- SMS 2003部署與操作深入指南
- Learning ServiceNow
- 網站規劃與網頁設計
- Microsoft 365 Mobility and Security:Exam Guide MS-101
- 歐姆龍CP1H型PLC編程與應用
- Azure Serverless Computing Cookbook
- 中文版Photoshop CS6數碼照片處理高手速成