In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces what is the difference between relational database and non-relational database, which can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
Differences: relational data is naturally tabular, so it is stored in rows and columns of data tables; data tables can be associated with each other for collaborative storage, and data can be easily extracted. Non-relational data is not suitable to be stored in rows and columns of a data table, but is grouped together in large chunks; non-relational data is usually stored in a dataset, such as a document, key-value pair, or graph structure.
The difference between relational database and non-relational database
The main difference between relational and non-relational databases is the way data is stored. Relational data is naturally tabular, so it is stored in rows and columns of the data table. Data tables can be associated with collaborative storage, and it is also easy to extract data. (recommended tutorial: mysql video tutorial)
In contrast, non-relational data is not suitable to be stored in rows and columns of a data table, but is grouped together in large chunks. Non-relational data is usually stored in datasets, such as documents, key-value pairs, or graph structures. Your data and its characteristics are the primary factors in choosing how to store and extract data.
Relational database
The most typical data structure of a relational database is a table, which is a data organization composed of two-dimensional tables and their relationships.
Advantages:
1. Easy to maintain: all use table structure with consistent format
2. Easy to use: SQL language is universal and can be used for complex queries.
3. Complex operation: SQL is supported, which can be used for very complex queries between one table and multiple tables.
Disadvantages:
1. Poor reading and writing performance, especially efficient reading and writing of massive data.
2. Fixed watch structure, less flexibility
3. High concurrent read and write requirements. For traditional relational databases, the hard disk IPUBO is a big bottleneck.
Non-relational database
Strictly speaking, a non-relational database is not a database, but a collection of structured data storage methods, which can be documents or key-value equivalents.
Advantages:
1. Flexible format: the format for storing data can be in key,value form, document form, picture form, etc., which is flexible to use and has a wide range of application scenarios, while relational databases only support basic types.
2. High speed: nosql can use hard disk or random access memory as carrier, while relational database can only use hard disk
3. High scalability
4. Low cost: nosql database is easy to deploy and is basically open source software.
Disadvantages:
1. Without sql support, the cost of learning and using is high.
2. No transaction
3. The data structure is relatively complex, and the complex query is a little short.
Classification and comparison of non-relational databases:
1. Document type
2. Key- value type
3. Column database
4. Graphic database
Thank you for reading this article carefully. I hope the editor will share what is the difference between relational database and non-relational database. At the same time, I also hope you can support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!
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.