Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
GreaterCode
python
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
python
/
MongoDB_note
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
17 lines (17 loc) · 1 KB
master
Breadcrumbs
python
/
MongoDB_note
Copy path
Top
File metadata and controls
Code
Blame
17 lines (17 loc) · 1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
一.MongoDB是一种强大、灵活、可扩展的数据存储方式。
其有以下特点:
1.丰富的数据类型:MongoDB是面向文档的数据库,其将原来的“行”的概念换成了更加灵活的“文档”模型。
2.容易扩展:其面向文档的模型使得其可以自动在多台服务器间分隔数据,还可平衡集群的数据和负载。
3.丰富的功能:其支持通用辅助索引,可进行多种快速查询;存储JS;支持MapReduce等工具;固定集合大小;
支持文件存储
4.不牺牲速度
5.简便的管理
文档
1.文档中的键/值对是有序的,上下文档是完全不同的;
2.文档的值不仅可以是字符串,还可以是其他类型;
3.键不能含有空字符,”\0“用来表示键的结尾;
4."."和"$"有特别的意义,通常被保留;
5.以下划线“——”开头的键通常被保留;
6.MongoDB不但区分类型,还区分大小写;
7.MongoDB的文档不能有重复的键。
集合:集合是一组文档
You can’t perform that action at this time.