In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The biggest difference between mongo and traditional databases is:
Traditional database: structured data, after determining the table structure, the content of each row must be in line with the table structure, that is to say-the number of columns, the type is the same.
Mongo document database: each document under the table can have its own unique structure (json objects can have their own unique properties and values)
Idea: if there is a movie, film review, film review reply, reply score
In the traditional database, at least 4 tables are needed, and the correlation degree is very complex.
In the document database, it can be completed through 1 document. It reflects the anti-normalization of the document database.
{
Fiim:' The Demi-Gods & Semi-Devils'
Comment: [
{
The movie style of content:' Wong Kar-wai
Reply: ['support', 'good']
}
]
}
Comment and like menu structure of traditional data tables:
(it will be very complicated)
Mongodb, on the other hand, is a tree structure, which is very clear:
(no matter how deep it is, it can be very clear.)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.