Summary: MongoDB
Document Details

Uploaded by EvocativeLitotes4179
Chulalongkorn University
Tags
Summary
This document provides a summary of MongoDB concepts, including schema design, data modeling (embedding vs. referencing), and capped collections. It touches upon various design considerations for efficient database usage. The document seems to be intended for a technical audience.
Full Transcript
สามารถ ใ schema furnissesrequired fields, discontentrosfields assistivnmosa:afield and...
สามารถ ใ schema furnissesrequired fields, discontentrosfields assistivnmosa:afield and ( himo. ระ ไ เน TAP The overn MongoDB object sen 7 · · ประเภท ของ กก) : · พ: · Filed LevelSchema Definition: · วอ างการออกแบบ: ERROR : ในตกทวงขอ &* แทน การ แตก ตาราง ล เ น เ อง ใ มาอรวม น านบน ·Reference ไเ น(ตอ เ ใ Blookup แนบ ตน. - · Embeddeing vs. Referencing Embed being Reference of Relationships: Rulel: Favor embedding unless there is compelling notthe · Types reason 1. Chester one 2 One- to- Few ( Prefer: Embedding) 3 One- to- Many ( Prefer: Refferencing Rulez, Rules : localEmbed A A loinAserverleggingapplicationmodern WanHost Ruleu. Arrays should not grow without bound ในas"many" a couple of hundred documents don'tembed them ( referencing ( a few thousand documents don't use an array of ObjectID reference โ ก (Palo object referenceแผน ก บ าน ↳ ง น เ นเก ง หละ น จะนวมมากๆๆ ซ 5 Many - to Many Rule5: สป (แบบ อนก บ ก็ ที่ มู ด้ ลิ ลิ มั ดำ ย้ ขื กิ่ อื่ ป็ กิ มี ห้ ลั รุ ตั ยู่ ช้ บุ คำ ก์ ด้ กั ด้ น้ ศั ย่ ลั ท์ อ Fixed collection ง size · โดยจะ การ automaticallyoverwrite its oldestentries when it reaches its maximum size ไทย อง :strue homerenable capped collection emazumatos capped collection in bytes >เ น อtection >Specify the maximum number of เ น าเรา ไ ไ หนด งง กะ หาม มา อน เลย documents allowed in the capped -จะ collection การใpretty ( อาจ