redis overview.

redis NoSql series is a high performance, non-relational database

    1 What is Nosql

        NoSql () NoSql = not only sql) meaning, not just sql, database is a new concept, refers to non-relational database. web2.0 pure dynamic site has slightly force is not deliberately exposed a lot of problems difficult to overcome, rather than a relational database due to its own characteristics, has been very rapid development.

    Produced Nosql database is to solve large-scale collection of multiple data types of challenges brought about, especially the problem of big data applications.

      Compare NoSql and relational databases

          1 Benefits:  

            1) Cost: nosql database is simple and easy to deploy, basically open source software, do not like to use the bill as oralce significant cost to buy used, cheap compared to relational databases

            2) query speed: nosql data stored in the database in the cache, relational databases store data in hard disk in

            3) stored in the form of: nosql storage format is Key, value form, the form of the document, in the form of pictures, so you can eat the village foundation type, as well as a collection of objects or a variety of formats, and the database supports only basic data types.

            4) Scalability: relational databases such an extension is similar to the type of join result in very difficult

 

        Disadvantages:

          1) maintenance tools and information is limited, because nosql belongs to a new technology, and not 10 years of relational database technology in the same category

          2) does not provide support for sql, if not support industry standards such as sql, the user will have to learn and use certain costs

          3) does not provide a relational database processing of things

      Advantages 1.1.2 non-relational databases    

          Nosql is based on a key pair, there is no coupling between the data, so it is easy to scale-

      1.1.3 relational database advantages:    

        1) sql statement using complex queries can be extended between one or more tables

        2) things that support makes data access requirements for the safety of high performance can be achieved, for these two types of databases, the other advantage is their weaknesses, and vice versa.

  NoSql mainstream products:

      1 key-value pairs stored in the database

          1 Related Products Tokyo Cabinet / Tyrant, Redis, Voldemort, Berkeley DB

          2 Typical applications: content caching, mainly for high-access processing large amounts of data.

          3 Data Model series pairs.

      

       2 store database
        related products: Cassandra, HBase, Riak
        Typical applications: distributed file system
        data model: a column cluster storage, data will exist in the same column with
        advantages: fast search speed, scalability, easier distribution extended
        disadvantages: relatively limited functions
• 3 document database
        Related products: CouchDB, MongoDB
        typical applications: Web applications (similar to the Key-Value, Value is structured)
        data model: a series of key
        advantages: the data structure is not required strict
        disadvantage: query performance is not high, and the lack of a unified query syntax
• 4 graphics (Graph) database
        relational database: Neo4J, InfoGrid, Infinite Graph
        typical applications: social network
        data model: Figure structure
        advantages: FIG structurally related algorithms.
        Disadvantages: need to do in order to calculate the outcome of the whole map, not easy to do a distributed cluster program.

What is redis?

    Redis key to provide high performance with an open source development language for C (key-value) database, the official test data, 50 100 000 concurrent execution requests, read speed is 110,000 times / s, write speed is 81000 times / s, and storage requirements Redis to accommodate different scenarios by providing a plurality of key data types, so far Redis supported data types as keys.

 

      1) Type String String

      2) the type of hash Hash  

      3) a list of the type of list

      4) collection types set

      5) indexed collections sortedset

 

    1.3 Unfinished

Guess you like

Origin www.cnblogs.com/qmk-716/p/12227355.html