본문 바로가기
KERD
논문KCI 등재

MongoDB에서 내부 조인 질의 표현에 대한 연구

A Study on the Inner Join Query Expressions in MongoDB

0

조회

0

다운로드

0

인용

0

참고문헌

키워드

주제분류학제간연구

초록

최근 대규모 데이터를 분산 저장 및 관리하기 위해 NoSQL 데이터베이스 시스템이 활발히 사용되고 있다. 특히, 데이터 저장의 기본 단위로 JSON 형식의 문서를 사용하는 문서 모델을 기반으로 개발된 MongoDB 데이터베이스 시스템이 가장 널리 사용되고 있다. MongoDB에서는 데이터간의 연관성을 표현하기 위해 비정규화 모델과 정규화 모델을 지원하고 있으나, 질의 처리 성능 관점에서 연관된 데이터를 하나의 문서에 내장 시켜 표현하는 비정규화 모델을 최적의 방법으로 권장하고 있다. 그러나, 모든 경우에 비정규화 모델링 방식이 최적의 방법이 될 수 없으므로 두 문서의 조인 형태로 데이터간의 연관성을 지원하기 위해 $lookup 연산을 제공하고 있으나 이 연산은 왼쪽 외부 조인 연산만을 지원하고 있다. 본 연구에서는 조인 연산 중 가장 일반적으로 활용되는 내부 조인 연산이 MongoDB에서 어떠한 형태로 표현가능한지 살펴본다. 특히, 추가적인 새로운 연산의 도입 없이 현재 MongoDB가 제공하는 여러 가지 연산 기능들을 활용하여 내부 조인을 표현할 수 있는 사례들에 대한 소개와 이에 대한 실험적 평가에 대해 기술한다.

Abstract

Recently, NoSQL database systems have been actively used to distribute and manage large-scale data. In particular, the MongoDB database system developed based on the document model using JSON format documents as the basic unit of data storage is the most widely used. MongoDB supports denormalization and normalization models to express the correlation between data, but from the viewpoint of query processing performance, the denormalization model, which expresses related data by embedding it in a single document, is recommended as the optimal method. However, since the denormalization modeling method cannot be optimal in all cases, the $lookup operation is provided to support the association between data in the form of a join of two documents, but this operation supports only the left outer join operation. In this study, we examine how the most commonly used inner join operation can be expressed in MongoDB. In particular, it introduces cases that can express inner joins using various operation functions currently provided by MongoDB without introducing additional new operations, and describes experimental evaluations thereof.

참고문헌 (8)

  1. D. Sullivan, "NoSQL for Mere Mortals" (2015), Gilbut Pub
  2. "MongoDB"[URL]
  3. "DB-ENGINES"[URL]
  4. "JSON"[URL]
  5. 김성완, "분할 저장 모델을 이용한 JSON 데이터의 관계형 데이터 모델로의 변환", 창의정보문화연구, 8(3), pp.135~143 (2022), 한국창의정보문화학회[DOI]
  6. A. Celesti, "A Study on Join Operations in MongoDB Preserving Collections Data Models for Future Internet Applications", Future Internet, 11(4), pp.1~17 (2019)
  7. "MongoDB"[URL]
  8. "MongoDB"[URL]

관련 논문AI추천

이 간행물의 다른 논문 (11건)