了解網(wǎng)絡(luò)數(shù)據(jù)庫(kù)模型

Understanding the Network Database Model

了解網(wǎng)絡(luò)數(shù)據(jù)庫(kù)模型

The network database model was a progression from the hierarchical database model and was designed to solve some of that model's problems, specifically the lack of flexibility. Instead of only allowing each child to have one parent, this model allows each child to have multiple parents (it calls the children members and the parents owners). It addresses the need to model more complex relationships such as the orders/parts many-to-many relationship mentioned in the hierarchical article. As you can see in the figure below, A1 has two members, B1 and B2. B1. is the owner of C1, C2, C3 and C4. However, in this model, C4 has two owners, B1 and B2.

網(wǎng)絡(luò)數(shù)據(jù)庫(kù)模型是從分層數(shù)據(jù)庫(kù)模型發(fā)展而來(lái)的,旨在解決該模型的某些問(wèn)題,特別是缺乏靈活性。該模型不僅允許每個(gè)孩子有一個(gè)父母,而且還允許每個(gè)孩子有多個(gè)父母(它稱為孩子成員和父母所有者)。它滿足了對(duì)建模更復(fù)雜關(guān)系的需求,例如層次結(jié)構(gòu)文章中提到的訂單/零件多對(duì)多關(guān)系。如下圖所示,A1有兩個(gè)成員B1和B2。B1。是C1,C2的所有者,C3和C4。但是,在此模型中,C4具有兩個(gè)所有者B1和B2。

image.png

Of course, this model has its problems, or everyone would still be using it. It is more difficult to implement and maintain, and, although more flexible than the hierarchical model, it still has flexibility problems, Not all relations can be satisfied by assigning another owner, and the programmer still has to understand the data structure well in order to make the model efficient.

當(dāng)然,此模型有其問(wèn)題,否則每個(gè)人都仍會(huì)使用它。實(shí)施和維護(hù)更困難,并且盡管比分層模型更靈活,但仍然存在靈活性問(wèn)題。并非所有關(guān)系都可以通過(guò)分配另一個(gè)所有者來(lái)滿足,程序員仍然必須很好地理解數(shù)據(jù)結(jié)構(gòu)才能做到。使模型高效。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容