For PHP operations on MongoDB [NoSQL] databases, refer to section 1. MongoDB introduction.
MongoDB (named from "humongous") is a scalable, high-performance, open-source, free-mode, document-oriented database, it combines the advantages of document databases, key-value pairs, and relational databases. Official site: ht
function relative limitation
3. Document-based database
Examples
CouchDB, MongoDb
Typical application Scenarios
Web applications (similar to Key-value, value is structured, but the database is able to understand the contents of value)
Data model
Key-value corresponding key-value pairs, value is structured data
Strengths
Data structure requirements are not strict, table structure is variable, do not need to
The NoSQL product to be evaluated in this article is Redis. It can be understood as a Key-Value data structure operation. The data is stored in the memory and regularly refreshed to the disk.
The NoSQL product to be evaluated in this article is Redis. It can be understood as a Key-Value data structure operation. The data is stored in the memory and regularly refreshed to the disk.
The
about their own views.With the Ali Department of "go to IoE" movement in the community's propaganda louder and louder, the domestic is set off a "go to XXX" technology tide. Not only are internet companies, including operators and financial institutions, already starting to join the trend. As the "O" in the movement of the Oracle database, naturally become the target of criticism, many CIOs and CTO have shown a desire to remove the quick expression. So in the actual application scenario, how ex
Random access performance comparable to MySQL
Best practice scenario: for Preference BigTable:) and for random, real-time access to big data.For example: Facebook message database (more common use cases are about to appear)Note 4:thrift is an interface definition language that provides definition and creation services for a variety of other languages, developed by Facebook and open source.Of course, all systems do not only have these features listed above. Here I just list some of the
. TT actually has a memory buffer, but it is much smaller than the former.The above tests are not complete, but they are just the beginning. For example, there is no small data test (using numbers as the key, 100 bytes Value), and there is no big data test (about 20 kB ); performance in hit situations is not tested; concurrent read/write performance is not tested, it is reported that MongoDB's concurrent read/write efficiency is not particularly outstanding, and MongoDB features a powerful q
Tags: nosqlNoSQL databases: Consistency of dataRead consistency
Strong consistencyAccess to any node in the cluster at any time, resulting in consistent data results;
User consistency for the same user, access to the data during the cluster is consistent;Resolve user consistency: Use sticky sessions to bind sessions to specific nodes for processing;This reduces the performance of the load balancer;
Final consistencyThe data synchroniz
Tags: style http color ar os using strong file dataOriginal address: http://database.51cto.com/art/201109/291781.htm In the current enterprise IT architecture, system administrators and DBAs will consider using NoSQL databases to solve problems that RDBMS cannot solve, especially in the internet industry. Traditional relational databases store data in the form of
Distributed models of NoSQL DatabasesDistributed Model Single Server of NoSQL Database
Distributed architecture is easy to deploy and easy to maintain when a server is fully competent;Shard features
Each part of the data is stored on different servers of the cluster;For example, by letter: key values starting with a-g are stored on the first server, and keys starting with h-n are stored on the second server
The NoSQL product to be evaluated in this article is Redis. It can be understood as a Key-Value data structure operation. The data is stored in the memory and regularly refreshed to the disk, high read/write efficiency has attracted much attention. Sina Weibo in China uses Redis to store user relationships and count on a large scale.
Jieshao
According to the official statement, Redis is developed using ansi c and runs on Most POSIX (Linux, * BSD, OS X
Source: comparison of various nosql databases in http://hi.baidu.com/eastdoor/blog/item/758d0e3eedb5d92471cf6c14.html Cassandra, MongoDB, CouchDB, Redis, Riak, HBaseCouchDBDevelopment language: ErlangMain advantages: data consistency and ease of useLicense: ApacheProtocol: HTTP/RESTApplicable: accumulated, less changed data. Or a large number of versions are required.Example: CRM, CMS systems. multi-site de
NoSQL database: Consistent read consistency for data
Strong consistencyAccess to any node in the cluster at any time, resulting in consistent data results;
User consistencyThe same user, access to the cluster during the data consistent;Resolve user consistency: Use sticky sessions to bind sessions to specific nodes for processing;This reduces the performance of the load balancer;
Final consistencyThe data synchronization between the n
I. MongoDB Introduction
MongoDB (named from "humongous") is a scalable, high-performance, open-source, free-mode, document-oriented database, it combines the advantages of document databases, key-value pairs, and relational databases. Official site: http://www.mongodb.org/,mongodbhighlights:
• Document-oriented storage (simple and powerful JSON-like data mode)• Dynamic query• Full index support, extended to
ObjectiveNosql:not only SQL (not no SQL), it means using a relational database when the relational database is applied, but using a different database where it is not suitable for a relational database. The emergence of NoSQL is mainly to make up for the deficiency of relational database, it can be regarded as a supplement of relational database. It must be understood, however, that NoSQL is not meant to re
two versions are reserved for application layer processing.This problem is common in scenarios such as data consistency maintenance and cluster State synchronization, such as cluster member information propagation. While a coordinator who introduces a monitoring database and develops a synchronization plan can solve this problem, a centralized database can provide better fault tolerance. The main practice of de-centering is to use a well-designed infection protocol [7], which is relatively simp
1. there are about 70 businesses. 2. there are eight public fields in these services. 3. in addition to public fields, each service has 5-20 fields different from other services. 4. for example, business 1 has the following public fields (channels, sizes ..) self-owned field: name, ID card, gender .. business 2 has the following public fields (channels, sizes ..) free field: color, length, width... 5. currently, the solution is to place a business in one table, which only counts five businesses
NoSQL database: Consistent read consistency for data
Strong consistencyAccess to any node in the cluster at any time, resulting in consistent data results;
User consistencyThe same user, access to the cluster during the data consistent;Resolve user consistency: Use sticky sessions to bind sessions to specific nodes for processing;This reduces the performance of the load balancer;
Final consistencyThe data synchronization between the n
operations, so very slow, and the associated query is also very complex, resulting in low efficiency, often query business does not go index, query speed is very slow, mainly because of the complexity of the performance of the lower Summary Choosing a nosql requires the following 2 prerequisites:1. No acid required2. No correlation query required If you need the above two functions, you cannot select NoSQL
1. MongoDB
Introduction
MongoDB is a distributed file storage-based database. Written in C ++. It mainly solves the access efficiency of massive data and provides scalable and high-performance data storage solutions for Web applications. When the data volume exceeds 50 GB, The MongoDB database access speed is more than 10 times that of MySQL. MongoDB's concurrent read/write efficiency is not particularly good. According to the official performance test, it can process 5 thousand-bytes per second
NoSQL database: Consistent read consistency for data
Strong consistencyAccess to any node in the cluster at any time, resulting in consistent data results;
User consistencyThe same user, access to the cluster during the data consistent;Resolve user consistency: Use sticky sessions to bind sessions to specific nodes for processing;This reduces the performance of the load balancer;
Final consistencyThe data synchronization between the n
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.