如何理解文档型数据库(如:MongoDB)文档型三个字的意思
ringa_lee
ringa_lee 2017-04-28 09:06:11
0
6
881

如何理解文档型数据库(如:MongoDB)文档型三个字的意思

ringa_lee
ringa_lee

ringa_lee

reply all(6)
仅有的幸福

Document type means that the data we store is a collection of key-value pairs, the key is a string, and the value can be any type in the data type collection, including arrays and documents. We call this data format "[BSON] "That is, "Binary Serialized dOcument Notation."
If you want to know more about MongoDB, you can read this article for a comprehensive summary of Mongodb. People who want to learn mongodb can start here!

The article is very long, it is recommended to have melon seeds ready to read

習慣沉默

It means you can store formatted data like json. .
Each document is a column of data in a relational database
Newbies understand

刘奇

Each piece of data in a document database is like an independent document. For example, for an article web page, its articles and its comments are stored together in a json document and are an independent entity.

It will be very convenient to read data from the background to the front desk. You can directly read a json from the database to the front desk, and the front desk can display it directly. In this way, there is no need to slow down the correlation like a relational database.

世界只因有你

If json is used to describe it, it can be understood as an object. It's just like the objects stored in your program, but the location is different.

刘奇

I think document, that is, document, can be understood as equivalent to the row of a relational database, and collection is equivalent to the table of a relational database.

我想大声告诉你

Is it a file system similar to the file id corresponding to the file?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!