Database/MongoDB
Intro
mansoorrr
2023. 9. 20. 14:58
대표적인 NoSQL로 MongoDB가 있다. MongoDB에서 제공하는 Document를 통해 DB 만지는데 필요한 CRUD 방법들과 특징들에 대해 파악하고자 한다.
Introduction to MongoDB — MongoDB Manual
Docs Home → MongoDB Manual A record in MongoDB is a document, which is a data structure composed of field and value pairs. MongoDB documents are similar to JSON objects. The values of fields may include other documents, arrays, and arrays of documents.Th
www.mongodb.com
1. MongoDB란?
- Document Database라고 불림
- Document Database란 json형식과 유사한 { field : value } 형식을 갖는 데이터 베이스
- value는 또다른 { field : value}를 가질수도 있고 [ ]: array를 가질수도 있다.
2. MongoDB의 장점
- 많은 프로그래밍 언어들과 호환성 좋음
- 불필요한 join을 제거
- 유연한 다양성 제공
- 빠름
3. Mysql과의 비교
구분(정의) | MySQL | MongoDB |
종류 | RDBMS | NoSQL |
Query Language | SQL | MQL |
database | db | db |
table | table | collection |
row | row | documents |
access | join | - |
MongoDB Vs MySQL
We compare MongoDB & MySQL's performance, speed, and scalability
www.mongodb.com
MongoDB의 기본 개념에 대해 알아보자
Databases, Collections, Documents
1. Overview MongoDB는 데이터를 documents에 저장하고 documents는 collection안에 저장된다. 이 collection들은 다시 db에 저장된다. 2. Databases db를 사용하기 위해서는 db를 선택해야 한다. db를 선택하기 위해 사
hiphan-mansoorrr.tistory.com