mongodb-dba-workshop

MongoDB for DBA Workshop

โดย Nextflow.in.th

Setup guideline

Presentation

Mongo Atlas

  1. สมัคร และทดลองสร้าง Cluster บน Mongo Atlas
  2. ฝึกเชื่อมต่อ Cluster ด้วย Mongo Compass

MongoDB Shell

  1. ฝึกเชื่อมต่อ Cluster บน Atlas ด้วย Mongo Shell และใช้คำสั่งพื้นฐาน
  2. รัน MongoDB ด้วย Shell (คำอธิบายเพิ่มเติม)
  3. ฝึกเชื่อมต่อ Local Cluster ด้วย Mongo Compass

MongoDB Command

  1. โหลดข้อมูล ด้วยคำสั่ง mongoimport
  2. Insert Operation
  3. Read Operation
  4. Update Operation
  5. Remove Operation

Q&A

วิธีต่างๆ ที่ใช้แทน JOIN

** อย่าลืมว่า MongoDB ออกแบบมาเพื่อให้ประสิทธิภาพในการอ่าน/เขียน Data จากฐานข้อมูลสู่ระดับ Application ทำงานได้เร็วที่สุด กลไก JOIN จึงไม่มีมาตั้งแต่ต้น แต่ $lookup ก็สามารถพิจารณาเอามาใช้งานในทำนองเดียวกันได้ รวมถึงแนวคิดต่างๆ ที่เอามาทดแทน JOIN ได้ครับ

Indexing

  1. Single Field Indexes
  2. Index Sorting
  3. Index Compound

MongoD Command & Config

  1. Setup Vagrant Image Environment
  2. MongoD Command
  3. MongoD Configuration Files

Security & Authentication

  1. Security: First Admin account (Localhost exception)
  2. Security: Authentication method

Replica Set

  1. Setting up a Replica Set
  2. # Reconfiguring a Running Replica Set

Q&A

Sharding

  1. Setting up a shared cluster

Exercise