ข้ามไปยังเนื้อหา

Glossary

EnglishThai Styleหมายเหตุ
documentdocumentหน่วยข้อมูลพื้นฐาน — ไม่แปลเป็น “เอกสาร” เพราะจะสับสนกับ documentation
collectioncollectionกลุ่มของ document — เทียบเท่า table ใน relational DB
fieldfieldคีย์หนึ่งตัวใน document
BSONBSONbinary encoding ของ JSON ที่ MongoDB ใช้เก็บข้อมูลจริง
_id / ObjectId_id / ObjectIdprimary key เริ่มต้นของทุก document
embeddingembed / การ embedเก็บข้อมูลที่เกี่ยวข้องไว้ใน document เดียวกัน
referencingreference / การ referenceเก็บ _id ของ document อื่นไว้แทนการ embed
EnglishThai Styleหมายเหตุ
queryqueryใช้ทับศัพท์ ไม่แปลเป็น ” query “
filterfilterเงื่อนไขที่ query ใช้จับคู่ document
operator ($gt, $in, …)operatorคีย์พิเศษขึ้นต้นด้วย $
projectionprojectionการเลือกว่าจะคืน field ไหนกลับมา
upsertupsertupdate ถ้าเจอ, insert ถ้าไม่เจอ
operationoperationคำกลาง ๆ สำหรับการกระทำหนึ่งครั้งบน database (ไม่แปลเป็น “การดำเนินการ”)
EnglishThai Styleหมายเหตุ
indexindexโครงสร้างข้อมูลที่เร่งความเร็ว query
compound indexcompound indexindex ที่สร้างจากหลาย field
ESR ruleกฎ ESR (Equality, Sort, Range)ลำดับการจัด field ใน compound index
aggregation pipelineaggregation pipelineลำดับของ stage ที่แปลง document ทีละขั้น
stage ($match, $group, …)stageหนึ่งขั้นตอนใน aggregation pipeline
accumulatoraccumulatorฟังก์ชันสรุปค่าใน $group เช่น $sum, $avg
EnglishThai Styleหมายเหตุ
transactiontransactionกลุ่มของ operation ที่ต้อง commit หรือ abort พร้อมกัน
write concern / read concernwrite concern / read concernระดับการยืนยันความทนทาน/ความสดของข้อมูล
replica setreplica setกลุ่มของ MongoDB instance ที่ถือสำเนาข้อมูลเดียวกัน
primary / secondaryprimary / secondarynode ที่รับเขียน / node ที่คัดลอกข้อมูลมา
shardingshardingการกระจาย collection ไปหลาย shard เพื่อ scale การเขียน
shard keyshard keyfield ที่ใช้ตัดสินว่า document อยู่บน shard ไหน
chunkchunkช่วงของ shard key ที่กำหนดให้ shard ใด shard หนึ่งดูแล
หลีกเลี่ยงใช้แทน
เอกสาร (หมายถึง document)document
คอลเลกชันcollection
การดำเนินการoperation (หรือ “ทำงาน” / “รัน” ถ้าหมายถึงกริยา)
ทำการ + กริยา (เช่น “ทำการ insert”)ตัดคำว่า “ทำการ” ออก ใช้กริยาตรง ๆ (“insert”)
ชิ้นส่วน (หมายถึง shard/chunk)shard / chunk