Redis common commands

1, Global command 1. Query key Keys * query all keys and traverse all key values, complexity O(n) 2. Total number of keys dbsize queries the total number of keys and directly obtains the total number of keys variable built in redis. The complexity is O(1) 3. Check whether the key exists exists key returns 1 if it exists and 0 if it does n ...

Added by darklight on Fri, 11 Feb 2022 04:31:37 +0200

[accompanying notes] detailed records of Docker installation postgres database

Record in detail the detailed process of installing postgres data in the Docker environment under macOS, and record the installation steps and problems. postgres installation First, use the command to pull the image of postgres $ docker pull postgers Using default tag: latest latest: Pulling from library/postgres 5eb5b503b376: Pull compl ...

Added by Ulujain on Fri, 11 Feb 2022 04:04:01 +0200

[tcallusdb knowledge base] restful API For generic table - [PB] IndexQuery introduce

[tcallusdb knowledge base] restfulapi2 0 for generic table - [Pb] indexquery2 0 Introductionbrief introductionQuery records through the global index and support SQL syntax, as shown in the appendix. To use this interface, you need to add global index fields to the table on Tencent cloud console or local Docker Web platform in advance.POST http: ...

Added by hurricane on Fri, 11 Feb 2022 00:08:09 +0200

Introduction to Redis and five data types

1, NoSQL 1.1 overview Relational database: a database created based on a relational model. The so-called relationship model is "one to one, one to many, many to many". NoSQL = Not Only SQL, meaning: not just SQL; Generally refers to non relational database. Non relational database: A column of data is stored in the model. The rela ...

Added by Randy Jackson on Thu, 10 Feb 2022 20:03:14 +0200

Redis data type

Redis data type Redis supports five data types: string, hash, list, set and Zset. String (string) As like as two peas, string is the most basic type of redis. You can understand it as a type that is exactly the same as Memcached, and a key corresponds to a value. The string type is binary safe. This means that the redis string can con ...

Added by jimdavidson on Thu, 10 Feb 2022 19:05:27 +0200

Basic operation of database

database Basic concepts of database It is more convenient to manage the data in developmentPreviously, data was managed through IO flow Use the character stream to read one line of data at a timeEncapsulate the read data as an objectAdd multiple objects to the collectionTraverse the collection to determine whether the object is the object ...

Added by T_Hayden on Thu, 10 Feb 2022 18:20:03 +0200

k8s set up mysql master-slave synchronization

1. mysql master image configuration   first, we need to obtain the dockerfile file from the docker hub official website for subsequent modifications. The address is as follows:   https://github.com/docker-library/mysql.git    then copy one copy of the 8.0 folder and name the other 8.0_slave. Enter the 8.0 folder, where ther ...

Added by andrewburgess on Thu, 10 Feb 2022 16:19:38 +0200

ArangoDB performance test

ArangoDB test Test environment: x-node cluster, xCpu, xg memory start-up Single node startup mode: systemctl arangodb3 start –database.directory = /var/lib/arangodb3 Cluster startup mode: # Start Master arangodb --starter.data-dir=/root/arangodb/db1 --server.storage-engine=rocksdb start # Start other nodes arangodb --starter.data-di ...

Added by zoidberg on Thu, 10 Feb 2022 15:36:02 +0200

[tcallusdb knowledge base] restful API For generic table - [PB] IndexQuery introduce

[tcallusdb knowledge base] restfulapi2 0 for generic table - [Pb] indexquery2 0 Introductionbrief introductionQuery records through the global index and support SQL syntax, as shown in the appendix. To use this interface, you need to add global index fields to the table on Tencent cloud console or local Docker Web platform in advance.POST http: ...

Added by Hiccup on Thu, 10 Feb 2022 15:34:47 +0200

Summary of sub queries used in MySQL

1. Classification of sub query 1.1. Non associated subquery Subquery statements can be executed separately without reference to any content in the included statement. It is called non associated subquery. 1.1.1. Single row single column subquery The subquery statement returns a single row and single column table. This type of subque ...

Added by veveu on Thu, 10 Feb 2022 15:28:48 +0200