[giant's shoulder] detailed explanation of Spring affairs

Introduction Many coder s use database transactions without understanding the principle of transactions or even the basic concepts. It is very easy to make mistakes and write some code that they can't control. Many articles on the Internet are either concepts, a little source code, or a little test verification, which are not enough to fully u ...

Posted by DarkEden on Thu, 03 Feb 2022 11:04:01 +0100

Redis distributed lock, redis read / write lock, red lock, redis cache design, cache and database synchronization

Redis distributed lock Redis is a single process and single thread mode. The queue mode is adopted to change concurrent access into serial access, and there is no competition between multiple clients for redis connection. In redis, SETNX command can be used to realize distributed locking. If and only if the key does not exist, set the val ...

Posted by starsol on Thu, 03 Feb 2022 03:03:55 +0100

MySQL database learning notes, constraints and indexes, functions in MySQL, associated queries, and six word sentences of Select statements

Previously, we learned the design rules of relational database: Follow the ER model and three paradigms (E entity represents the meaning of entity, corresponding to a table in the database; R relationship represents the meaning of relationship.)Three paradigms: 1 Column cannot be disassembled 2 Unique identification3 The relationship refer ...

Posted by cloudzilla on Wed, 02 Feb 2022 23:04:02 +0100

mybatis study notes. Dynamic SQL, if, where, set, choose (when, otherwise), Foreach, SQL fragment explanation.

Dynamic SQL Official documents: https://mybatis.net.cn/dynamic-sql.html What is dynamic SQL: dynamic SQL refers to generating different SQL statements according to different query conditions. The SQL statements we wrote before are relatively simple. If there are complex businesses, we need to write complex SQL statements, which often ne ...

Posted by squariegoes on Wed, 02 Feb 2022 17:53:06 +0100

Reverse crawler 14 Mongo introduction

Reverse crawler 14 Mongo introduction 1, The difference between MongoDB and MySQL MongoDB is a non relational database, which stores any form of json format data; MySQL is a relational database, which can only store table data with pre-defined fields. The following is a comparison of different data names between MongoDB and mysql. MySQLMongo ...

Posted by DanDaBeginner on Wed, 02 Feb 2022 12:23:15 +0100

Distributed transaction

1. TCC of distributed transaction solution 1.1 what is a TCC transaction TCC is the abbreviation of try, Confirm and Cancel. TCC requires each branch transaction to implement three operations: preprocess try, Confirm and Cancel. Try performs business check and resource reservation, Confirm performs business confirmation, and Cancel imp ...

Posted by Harsh on Wed, 02 Feb 2022 11:46:10 +0100

Elasticsearch search search engine storage (basic use)

1.Elasticsearch related concepts There are several basic concepts in elastic search, such as node, index, document, etc., which are described below. Understanding these concepts is helpful for getting familiar with Elasticsearch Nodes and clusters Elasticsearch is essentially a distributed database that allows multiple servers to work togeth ...

Posted by keefy on Wed, 02 Feb 2022 09:16:32 +0100

Migrating CM and database-2

9.1 migrate the data of the original CM node to the new node 9.1.1 backup the original CM node data It mainly backs up the monitoring data and management information of CM. The data directory includes: /var/lib/cloudera-host-monitor /var/lib/cloudera-service-monitor /var/lib/cloudera-scm-server /var/lib/cloudera-scm-eventserver /var/lib/clou ...

Posted by cidesign on Wed, 02 Feb 2022 07:50:51 +0100

MySQL eighth exercise (master-slave copy, read-write separation)

1. Understand the principle of MySQL master-slave replication. Mainly based on MySQL Binary log It mainly includes three threads (2 threads) I/O Threads, 1 individual SQL Thread) 1 , MySQL Record the data changes in the binary log; 2 , Slave take MySQL Copy binary lo ...

Posted by cordoprod on Wed, 02 Feb 2022 06:35:53 +0100

Great, Python can also operate the Registry [black hat entry must see]

preface Hello, I'm sailing. We may not be very familiar with the registry, because we usually use less; However, it is the core of Windows. Many software startup and logging are included in it. It can be said that it is a large database. Today, let's take a look at how Python operates the registry.   1, Registration form first meeting Ther ...

Posted by hairytea on Wed, 02 Feb 2022 04:23:05 +0100