Home Database Mysql Tutorial NoSQL的一些碎碎念

NoSQL的一些碎碎念

Jun 07, 2016 pm 05:56 PM
nosql

NoSQL的一些碎碎念 NoSQL并不像字面意思那样,并不是说不再使用SQL,不再使用关系数据库,他真正的意思是Not Only SQL,他的出现是为了弥补关系数据库的不足,尤其是是在处理超大量的数据时。NoSQL并不是一个数据库的名字,而是一系列不再局限于关系型的数据

NoSQL的一些碎碎念

 

NoSQL并不像字面意思那样,并不是说不再使用SQL,不再使用关系数据库,他真正的意思是Not Only SQL,他的出现是为了弥补关系数据库的不足,尤其是是在处理超大量的数据时。NoSQL并不是一个数据库的名字,而是一系列不再局限于关系型的数据库的总称。

下面本文将就目前出现的一些NoSQL做一些简要的介绍,以备获悉,并且本文将不断更新,以补充一些新的NoSQL数据库的介绍,并且摒弃那些不再流行的NoSQL数据库,有关NoSQL的最新的数据库信息,可以从网站上面查阅。另外,本文的大多数Linux下面的实验是在ubuntu系统下进行的。

为了更好的了解NoSQL,这里列出了一些NoSQL常用的提升处理能力的非SQL的一些概念,这些概念会一直进行补充。

概念一:键值存储

数据的存储方式是键值对。这样的数据库处理速度一般很快,查询获取数据的方式一般为通过键或者键的正则表达式。

目前本文包含的NoSQL数据库有:memcached,

memcached   

该数据库属于把数据存储在内存中的数据库,事实上,当机器断电,内存关闭的时候,memcached也就不复存在,当机器启动,内存重新加载memcached的时候,这已经是一个全新的数据库了,所以需要保存持久的数据一般是不会使用memcached数据库的。由于memcached是全部数据在内存中的,服务器空间,所以具有高速的响应速度,一般被用做高速缓存使用。

memcached数据库是基于键值存储的,并且是临时性的,一些具体的例子如下所示。该例子是使用了Ruby实现。

image

 

这个例子实现了在同一个机子中开辟3个memcached,分别对应不同的端口。Ruby访问memcached就像使用Map一样简单。

在ubuntu下面Ruby需要使用memcache-client库来支持,香港服务器,而这个需要使用gem进行安装,香港虚拟主机,所以ubuntu下面的ruby最好采用1.9以上版本。启动一个memcached的应用实例的命令如下:

memcached –d –p 11211(端口) –u nobody(用户名) –c 1024(最大连接数) –m 64(内存空间)

除此之外,repcached工具实现了memcached多个实例之间,数据的相互复制备份。

 

posted on

Copyright ©2012 Yakov Powered by: 博客园 模板提供:沪江博客

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)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
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

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

What are the characteristics of nosql database What are the characteristics of nosql database Nov 28, 2022 pm 07:43 PM

Features of nosql: 1. Flexible scalability; nosql removes the relational characteristics of relational databases, there is no relationship between data, and it can be easily expanded. 2. Flexible data model; NoSQL uses non-relational models such as key/value and column family, allowing different types of data to be stored in one data element. 3. NoSQL can rely on its good horizontal expansion capabilities to make full use of cloud computing infrastructure and integrate well into the cloud computing environment. 4. Nosql has very high reading and writing performance, especially when dealing with large amounts of data. 5. High availability.

How to solve Redis cache avalanche, breakdown and penetration How to solve Redis cache avalanche, breakdown and penetration Nov 03, 2022 pm 05:23 PM

This article brings you relevant knowledge about redis, which mainly introduces how to solve the problems related to redis cache avalanche, breakdown and penetration. Cache avalanche means that a large number of requests cannot hit the cached data in Redis. The data cannot be found in Redis; let’s take a look at it, I hope it will be helpful to everyone.

See all articles