DEVELOPMENT/DB 5

[MongoDB] Building with Patterns

본 문서는 "MongoDB Developer Center Articles"를 참고하여 작성되었습니다. 🔗 https://www.mongodb.com/developer/products/mongodb/polymorphic-pattern/ The Polymorphic Pattern 모든 컬렉션 문서가 유사하지만 완전히 동일하지 않은 구조를 가지고 있을 때 문서가 동일한 컬렉션에 있더라도 각 선수에 대한 저장된 데이터가 동일할 필요는 없음 { "sport": "ten_pin_bowling", "athlete_name": "Earl Anthony", "career_earnings": { value: NumberDecimal("1441061"), currency: "USD"}, "300_games": 25, "ca..

DEVELOPMENT/DB 2023.11.01

[MongoDB] Sharding

본 문서는 MongoDB "Sharding"을 참고하여 작성되었습니다. https://www.mongodb.com/docs/manual/sharding/ Sharding 데이터를 여러대의 서버로 분산시켜 대용량 데이터 집합과 고 처리량 작업을 지원하는 기술 어떨때 샤딩을 고려할 수 있을까? 높은 쿼리 속도로 서버의 CPU 용량이 부족할 때 시스템 RAM보다 큰 작업 집합 크기로 디스크 I/O 용량을 초과할 때 스케일링 방법 수직 스케일링(Vertical Scaling) 단일 서버의 성능을 향상시키는 것을 의미 더 강력한 CPU 사용, 더 많은 RAM 추가, 또는 저장 공간을 늘리는 것과 같은 방법을 사용 작업 부하에 충분히 대응하지 못할 수 있으며, 클라우드 기반 제공업체는 사용 가능한 하드웨어 구성에 ..

DEVELOPMENT/DB 2023.10.28

[MongoDB] Configuration File Options

본 포스팅은 MongoDB "Configuration File Options" 문서에 기반하여 작성되었습니다. https://www.mongodb.com/docs/manual/reference/configuration-options/ Configuration File mongod, mongos 인스턴스를 시작할 때 configuration file을 사용하여 설정할 수 있음 Platform Method Configuration File Linux apt, yum, or zypper /etc/mongod.conf macOS brew /usr/local/etc/mongod.conf (on Intel processors) /opt/homebrew/etc/mongod.conf (M1) Windows MSI In..

DEVELOPMENT/DB 2023.10.28

[MongoDB] MongoDB Node.js Developer Path

본 문서는 MongoDB university의 "MongoDB Node.js Developer Path"를 정리한 포스팅입니다. 강의: https://learn.mongodb.com/courses/connecting-to-mongodb-in-nodejs 이 강의는 저번에 들었던 "Introduction to MongoDB"과 겹치는 유닛이 많아서 해당 부분은 제외한 나머지에 대해서 정리하였습니다! UNIT6: Connecting to MongoDB in Node.js Driver - the driver works in tandem with the built-in Node.js BSON package to interact with MongoDB server const { MongoClient } = req..

DEVELOPMENT/DB 2023.09.28