Thuta Learning
ရှာဖွေရန်
Data & Databases

MongoDB ဆိုတာ ဘာလဲ

Document database ရဲ့ leading example — MongoDB ရဲ့ document/collection concept ကို SQL table/row နဲ့ နှိုင်းယှဉ်ပြီး ရိုးရိုးရှင်းရှင်း မိတ်ဆက်ပေးပါမယ်။

Learning Platform Editorial · 5 မိနစ် · နောက်ဆုံးပြင်ဆင်ရက် 24/08/2026

MongoDB ဆိုတာ ဘာလဲ cover illustration

MongoDB က NoSQL database category ထဲမှာ အသုံးအများဆုံး document database ပါ — data ကို SQL ရဲ့ table/row အစား collection/document ဆိုတဲ့ JSON-like structure နဲ့ သိမ်းပါတယ်, JavaScript/Node.js developer တွေအတွက် data format ရင်းနှီးလွယ်ပါတယ် (JSON ကို တိုက်ရိုက် database ထဲသိမ်းသလို ခံစားရပါတယ်)။

Collection & Document

MongoDB ရဲ့ Collection က SQL ရဲ့ Table နဲ့ ဆင်တူပါတယ် (data group တစ်ခု), Document က SQL ရဲ့ Row နဲ့ ဆင်တူပါတယ် (record တစ်ခု) — ကွာခြားချက်က Document တစ်ခုစီမှာ field structure မတူညီနိုင်ပါတယ် (schema-less), နဲ့ nested object/array ကို field ထဲမှာ တိုက်ရိုက်ထားနိုင်ပါတယ် (SQL မှာ ဒါကို table ခွဲပြီး join ရပါတယ်)။

SQL termMongoDB term
TableCollection
RowDocument
ColumnField
Primary Key_id

ဘယ် use case အတွက် သင့်တော်လဲ

Product catalog (product တစ်ခုစီရဲ့ attribute မတူညီ), user profile (optional field များစွာ), real-time analytics (data structure အမြဲပြောင်းနေ) — ဒီလို use case တွေမှာ MongoDB ရဲ့ flexible schema က development speed ကို မြှင့်တင်ပေးပါတယ်။ Financial transaction (strict consistency လိုအပ်) လိုမျိုး use case ကတော့ SQL ရဲ့ ACID guarantee ကို ဦးစားပေးသင့်ပါတယ်။

အနှစ်ချုပ်

MongoDB က SQL ရဲ့ rigid table structure ကို flexible document structure နဲ့ အစားထိုးထားတဲ့ database ပါ — JSON data ကို ရင်းနှီးတဲ့ developer တွေအတွက် natural fit ဖြစ်ပြီး, schema အမြဲပြောင်းလဲနေတဲ့ project တွေမှာ development speed ကို မြှင့်တင်ပေးပါတယ်။

Sources

Related content