Home Common Problem what is nosql

what is nosql

Oct 21, 2019 pm 05:22 PM
nosql

what is nosql

What is nosql

1. Introduction to nosql

NoSQL refers to a non-relational database. NoSQL is sometimes called the abbreviation of Not Only SQL, which is a general term for database management systems that are different from traditional relational databases. NoSQL is used for the storage of very large-scale data. These types of data stores do not require a fixed schema and can scale out without redundant operations.

2. The difference between Nosql and relational database

1. Storage method

Relationship A database is tabular, so it is stored in rows and columns of tables. They are easily linked to collaborative storage, often stored in data sets, such as documents, key-value pairs, or graph structures.

2. Storage structure

Relational database corresponds to structured data. Data tables have pre-defined structures (column definitions), and the structure describes the data. form and content. This is crucial for data modeling. Although predefined structures bring reliability and stability, modifying this data is difficult. The Nosql database is based on dynamic structure and uses unstructured data. Because Nosql database is a dynamic structure, it can easily adapt to changes in data type and structure.

3. Storage specifications

For higher standardization of data storage in relational databases, the data is divided into the smallest relational tables to avoid duplication and obtain streamlined Use the space. Although the management is very clear, when a single operation is designed to multiple tables, data management becomes a bit troublesome. Nosql data is stored in flat data sets, and data may often be repeated. Individual databases are rarely separated, but are stored as a whole, making the entire piece of data easier to read and write.

4. Storage expansion

This may be the biggest difference between the two. Relational databases scale vertically, which means that if you want to improve processing capabilities, you need to Use a faster computer. Because the data is stored in relational tables, the performance bottleneck of the operation may involve multiple tables and needs to be overcome by improving computer performance. Although there is a lot of room for expansion, the upper limit of vertical expansion will eventually be reached. The Nosql database is horizontally scalable, and its storage is naturally distributed. The load can be shared by adding more ordinary database servers to the resource pool.

5. Query method

Relational database operates the database through structured query language (which is what we usually call SQL). SQL supports database CURD operations, which are very powerful and are standard usage in the industry. Nosql queries operate data in blocks and use unstructured query language (UnQl), which has no standard. The concept of primary key in a relational database table corresponds to the ID of a document stored in Nosql. Relational databases use predefined optimization methods (such as indexes) to speed up query operations, while Nosql has a simpler and more precise data access mode.

6. Transactions

Relational database follows ACID rules (Atomicity, Consistency, Basically Available, Soft/ Soft-state, eventual consistency (Eventual Consistency)). Due to the strong data consistency of the relational database, it supports transactions very well. The relational database supports fine-grained control of transaction atomicity and is easy to recover. Roll transactions. The Nosql database chooses two of the CAP (Consistency, Availability, Partition Tolerance). Because it is difficult to satisfy all of them in a node-based distributed system, the support for transactions is not very good, although it is also Transactions can be used, but they are not the shining point of Nosql.

7. Performance

Relational databases pay a huge price to maintain data consistency, read and write The performance is relatively poor.

The format of Nosql storage is key-value type, and is stored in memory, which is very easy to store,

and has weak requirements for data consistency. Nosql No SQL parsing is required, which improves reading and writing performance.

8. Authorization method

Relational databases usually include SQL Server, Mysql, and Oracle. Mainstream Nosql databases include redis, the cost is relatively high, and Nosql databases are usually open source.

3. Why use NoSQL?

Today we can use third-party platforms (such as: Google , Facebook, etc.) can easily access and crawl data. Users’ personal information, social networks, geographical locations, user-generated data and user operation logs have increased exponentially. If we want to mine these user data, then SQL databases are no longer suitable for these applications, but the development of NoSQL databases can handle these large data very well.

The above is the detailed content of what is nosql. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Integration and use of Spring Boot and NoSQL database Integration and use of Spring Boot and NoSQL database Jun 22, 2023 pm 10:34 PM

With the development of the Internet, big data analysis and real-time information processing have become an important need for enterprises. In order to meet such needs, traditional relational databases no longer meet the needs of business and technology development. Instead, using NoSQL databases has become an important option. In this article, we will discuss the use of SpringBoot integrated with NoSQL databases to enable the development and deployment of modern applications. What is a NoSQL database? NoSQL is notonlySQL

Application of PHP and NoSQL database Application of PHP and NoSQL database Jun 19, 2023 pm 03:25 PM

In modern web application development, PHP and NoSQL databases have become very popular technology choices. In the past, PHP has been widely used to develop dynamic websites and web applications, while NoSQL database is a new data storage technology that has only recently emerged, providing a more flexible and scalable solution. In this article, we will explore PHP and NoSQL databases in practical applications. PHP is a server-side programming language, originally

Use PHP and MongoDB to implement NoSQL database to meet different user needs Use PHP and MongoDB to implement NoSQL database to meet different user needs Jun 26, 2023 pm 11:39 PM

NoSQL (NotOnlySQL) database is a type of database that has developed rapidly in recent years. Compared with traditional relational databases, it has better scalability and performance, and supports more data types and data storage methods. Among them, MongoDB is a NoSQL database that uses the document database model and is widely used in web applications, mobile applications, Internet of Things devices and other fields. This article will introduce how to use PHP to write the basic operations of MongoDB database, and demonstrate through examples how to meet

What is the difference between nosql and mysql What is the difference between nosql and mysql May 06, 2019 pm 02:39 PM

The difference between nosql and mysql is: 1. MySQL is a relational database based on table design, while NoSQL is essentially a non-relational document-based design; 2. MySQL’s strict schema restrictions are not easy to expand, while NoSQL can be extended through dynamic schema Features easily extend and more.

Comparison of Redis and NoSQL databases Comparison of Redis and NoSQL databases May 11, 2023 am 10:52 AM

With the rapid development of the Internet, the amount of data is also increasing. Therefore, data management has become a very important topic. NoSQL (non-relational database) has become one of the popular solutions for dealing with big data problems. Redis is a very popular NoSQL data management software. This article will analyze and compare the similarities and differences between Redis and other NoSQL databases to help understand their characteristics, advantages and disadvantages. 1. Overview of Redis Redis is a memory-based storage system that allows users to use

Learn about Couchbase caching technology Learn about Couchbase caching technology Jun 20, 2023 pm 07:24 PM

Couchbase is a popular caching technology that offers high performance, scalability, and reliability and is the solution of choice for many businesses and organizations. This article will introduce in detail the principles, advantages and application scenarios of Couchbase caching technology. Principle of Couchbase Cache Couchbase cache technology is based on a distributed NoSQL database, which can support concurrent operations of multiple nodes while achieving high availability and scalability of data. Data in Couchbase is cached using memory,

Using MongoDB for NoSQL processing in Java API development Using MongoDB for NoSQL processing in Java API development Jun 18, 2023 am 10:24 AM

With the development of the Internet, the amount of data is increasing, and it is particularly important to effectively store and process this data. NoSQL (NotOnlySQL) databases have attracted much attention due to their high performance, scalability and convenience. Compared with traditional relational databases, they are more flexible and suitable for various data processing scenarios. MongoDB is a very popular NoSQL database and is often used in Java development. This article will introduce the development of JavaAPI

PHP connections to NoSQL databases: MongoDB, Redis and more PHP connections to NoSQL databases: MongoDB, Redis and more Jun 05, 2024 pm 07:15 PM

Connect to NoSQL database in PHP: MongoDB: use MongoDB\Client class; Redis: use Redis class; Elasticsearch: use Elasticsearch\ClientBuilder class. Use Redis to cache WordPress pages: Create a Redis client; define a filter function to check whether the page exists in the cache; if it exists, output the cached page; otherwise, output the original page and cache it; enable cache filtering.