Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Is redis a relational database?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces redis is not a relational database, the text is very detailed, has a certain reference value, interested friends must read!

redis is a key-value nosql database (not relational). Value types that support storage include string, list, set, zset, and hash. These data types all support push/pop, add/remove, and take intersection union and subtraction, as well as richer operations, all of which are atomic. For efficiency, data is cached in memory.

NoSQL non-relational databases mainly refer to those non-relational, distributed, and generally do not guarantee ACID data storage systems, mainly on behalf of MongoDB, Redis, CouchDB. (Recommended learning: Redis video tutorial)

NoSQL puts forward another idea, stored by key value, and the structure is unstable, each tuple can have different fields, this will not be limited to a fixed structure, can reduce some time and space overhead. In this way, in order to obtain different information about users, there is no need to perform multi-table queries as in relational databases. Just need to extract the corresponding value according to the key.

Key-value database for high performance concurrent read and write

The main feature is that it has extremely high concurrent read and write performance, such as Redis.

NoSql is suitable for storing unstructured data, such as: articles, comments:

(1) These data are usually used for fuzzy processing, such as full-text search, machine learning, suitable for storing simpler data.

(2) The data is massive and the rate of growth is unpredictable.

(3) Getting data by key is efficient, but support for joins or other structured queries is poor.

NoSql extends horizontally. Non-relational databases are naturally distributed, so Load Balancer can be achieved through clustering.

Non-relational is a flat data set, data can often be repeated, a single database is rarely separated, but stored as a whole, this block read data efficiency is higher.

SQL databases are still powerful enough to reliably process transactions and maintain transaction integrity, but consider NoSql databases only if your data is very large and your operations scale requires a more distributed system.

The above is redis not relational database all the content, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report