当前位置:网站首页>021-MongoDB数据库从入门到放弃
021-MongoDB数据库从入门到放弃
2022-06-11 06:10:00 【程序员buddha】
1. NoSQL起源
最初数据库只有关系型数据库,随着发展,关系型数据库存在以下问题
- 不能满足高性能查询需求
- 扩展性差,大数据下IO压力大,表结构更改困难
NoSQL,泛指非关系型数据库。MongoDB、Redis等都属于非关系型数据库。NoSQL的优点:- 高可扩展性
- 分布式计算
- 低成本
- 架构的灵活性,半结构化数据
- 没有复杂的关系
NoSQL的缺点:- 没有标准化
- 有限的查询功能
- 最终一致是不直观的程序
2. MongoDB介绍
MongoDB是一个基于分布式文件存储的数据库。用C++语言编写,旨在为WEB应用提供可扩展的高性能数据存储解决方案- 在高负载的情况下,添加更多的节点,可以保证服务器性能
- MongoDB将数据存储为一个文档,数据结构由键值(key=>value)对组成
- MongoDB三元素
- 数据库:是一个集合的物理容器,一个数据库中可以包含多个文档
- 集合:相当于关系型数据库中的表,多个文档形成一个集合,文档可以是不同的形式
{'name':'曹操','sex':'男&#
边栏推荐
- Docker installation of MySQL and redis
- A collection of problems on improving working frequency and reducing power consumption in FPGA design
- The difference between call and apply and bind
- This point of arrow function
- FMT package usage of go and string formatting
- Make a small game with R language and only basic package
- Human gene editing technology and ethical issues behind it [personal view, for reference only]
- Completabilefuture asynchronous task choreography usage and explanation
- Basic usage of MySQL
- CCF 2013 12-5 I‘m stuck
猜你喜欢

Can Amazon, express, lazada and shrimp skin platforms use the 911+vm environment to carry out production number, maintenance number, supplement order and other operations?

A collection of problems on improving working frequency and reducing power consumption in FPGA design

PHP laravel8 send email

EasyGBS接入的设备视频直播突然全部无法播放是为什么?数据库读写不够

亚马逊、速卖通、Lazada、虾皮平台在用911+VM的环境可以进行产号、养号、补单等操作吗?

JIRA software annual summary: release of 12 important functions

Don't be afraid of xxE vulnerabilities: understand their ferocity and detection methods

Shandong University machine learning experiment 5 SVM

Login and registration based on servlet, JSP and MySQL

Eureka集群搭建
随机推荐
Nlp-d46-nlp match D15
Moteur de modèle de moteur thymeleaf
go的fmt包使用和字符串的格式化
The meaning in the status column displayed by PS aux command
FPGA interview topic notes (I) - FPGA development process, metastable state and competitive risk, build and hold time, asynchronous FIFO depth, etc
What should the cross-border e-commerce evaluation team do?
Sqli-libs range 23-24 filtration and secondary injection practice
Servlet
The difference between call and apply and bind
End of 2021 graphics of Shandong University
Chapter 1 of machine learning [series] linear regression model
Record the first data preprocessing process
Observer mode (listener mode) + thread pool to realize asynchronous message sending
EasyGBS接入的设备视频直播突然全部无法播放是为什么?数据库读写不够
What is a planning BOM?
Sword finger offer 32: print binary tree from top to bottom
Review Servlet
LeetCodeT526
Login and registration based on servlet, JSP and MySQL
FPGA interview notes (II) -- synchronous asynchronous D flip-flop, static and dynamic timing analysis, frequency division design, retiming