İç içe geçmiş kümeleri (yorum ağaçları gibi) MongoDB'de depolamanın en iyi yöntemleri nelerdir?MongoDB iç içe kümeler
Her yorumun bir ebeveyn yorumu ve çocuk yorumları (yanıtları) olabilir.
bu gibi onları saklanması: Biz, örneğin, harita olmadan "Peter tarafından yorumladı tüm post" için talep edemez, çünkü
{
title: "Hello",
body: "Please comment me!",
comments: [
{
author: "Peter",
text: "Hi there",
answers: [
{
author: "Peter",
text: "Hi there",
answers: [
{ author: "Ivan", text: "Hi there" },
{ author: "Nicholas", text: "Hi there" }
]
},
{ author: "Ivan", text: "Hi there" },
{ author: "Nicholas", text: "Hi there" },
]
},
{ author: "Ivan", text: "Hi there" },
{ author: "Nicholas", text: "Hi there" },
]
}
hiç hoş değil/azaltır.