문서 데이터베이스란?

NoSQL 개념

Miriam Antona

Software engineer

문서 데이터베이스 - 개요

문서 데이터베이스 구조 그림

NoSQL 개념

문서 데이터베이스 - 개요

문서 데이터베이스 구조 그림

NoSQL 개념

문서 데이터베이스 - 개요

문서 데이터베이스 구조 그림

NoSQL 개념

문서 데이터베이스 - 개요

문서 데이터베이스 구조 그림

NoSQL 개념

문서 데이터베이스 - 개요

문서 데이터베이스 구조 그림

NoSQL 개념

문서 데이터베이스 - 개요

문서 데이터베이스 구조 그림

NoSQL 개념

문서 데이터베이스 - 개요

문서 데이터베이스 구조 그림

NoSQL 개념

문서 데이터베이스 - 개요

문서 데이터베이스 구조 그림

  • 문서 -> 행
  • 컬렉션 -> 테이블
NoSQL 개념

문서

  • 키-값 쌍 집합
  • : 문자열
  • : 숫자, 문자열, 불리언, 배열, 객체
  • 스키마 없음: 구조 사전 정의 불필요
  • 형식: JSON, BSON, YAML, XML
NoSQL 개념

문서 - JSON 형식

{
  "user_id": 512,
  "name": "Carol",
  "last_name": "Harper",
  "email": "[email protected]",
  "address": {
    "street": "123 Sesame Street",
    "city": "New York City",
    "state": "New York",
    "country": "USA"
  },
  "hobbies": [
    "hiking",
    "painting"
  ]
}
NoSQL 개념

문서 - 질의

{
  "user_id": 512,
  "name": "Carol",
  "last_name": "Harper",
  "email": "[email protected]",
  "address": {
    "street": "123 Sesame Street",
    "city": "New York City",
    "state": "New York",
    "country": "USA"
  },
  "hobbies": [
    "hiking",
    "painting"
  ]
}
  • 뉴욕 거주·등산을 좋아하는 모든 사용자
  • 40세 초과 모든 사용자
  • user_id로 사용자 데이터
  • ...
NoSQL 개념

문서 - 다형성 모델

{
  "user_id": 512,
  "name": "Carol",
  "last_name": "Harper",
  "email": "[email protected]",
  "address": {
    "street": "123 Sesame Street",
    "city": "New York City",
    "state": "New York",
    "country": "USA"
  },
  "hobbies": [
    "hiking",
    "painting"
  ]
}
{
  "user_id": 513,
  "name": "Benjamin",
  "last_name": "Lieberman",
  "email": "[email protected]",
  "date_of_birth": "07/04/1984",
  "hobbies": [
    "reading"
  ]
}
NoSQL 개념

컬렉션

  • 문서의 집합
  • 동일한 유형의 엔터티 저장
  • 질의를 기준으로 문서와 컬렉션을 설계
NoSQL 개념

인기 문서 데이터베이스

인기 있는 문서 데이터베이스 로고

NoSQL 개념

Ayo berlatih!

NoSQL 개념

Preparing Video For Download...