Mysql deadlock triggered @Transactional data rollback

In Spring framework, we often use @Transactional annotation to do transactions, but transactions do not guarantee validity; The following are the problems I have encountered, which are not necessarily correct, and can be used as a reference. Ma ...

Added by sgaron on Sat, 07 Sep 2019 13:11:24 +0300

mysql database - Practice of sql statement

Summary of sql statements Exercise 1: //Create a Category Table: create table category( cid int primary key auto_increment, cname varchar(10), cdesc varchar(31) ); insert into category values(null,'Mobile Digital','Electronic product'), (null,'Shoe ...

Added by vijay17877 on Sat, 07 Sep 2019 11:35:05 +0300

MyBatis - Customize a small MyBatis

Recently, I studied the underlying code of Mybatis, and prepared to write a small tool to operate the database, which realized some functions of Mybatis. 1. SQL statements are configured in mapper.xml. 2. Support input of int, String and custom data ...

Added by gregor171 on Fri, 06 Sep 2019 16:43:11 +0300

Summary of Oracle Trigger

Examples of Oracle Trigger Usage Brief introduction of flip-flop The definition of a trigger means that when a condition holds, the statement defined in the trigger will be automatically executed. Therefore, triggers do not need to be called arti ...

Added by lexx on Fri, 06 Sep 2019 11:42:12 +0300

How to Choose the Right Index for MySQL

First look at a chestnut EXPLAIN select * from employees where name > 'a'; If using name index to find data needs to traverse the name field joint index tree, and then according to the traversed primary key value to the primary key index tree to find the final data, the cost is higher than the full table scan. Overlay index optimization c ...

Added by monkuar on Fri, 06 Sep 2019 07:44:04 +0300

How to Investigate Mysql Deadlocks: insert on duplicate Deadlock One-time Investigate and Analysis Process

Preface How should we investigate and analyze Mysql deadlock? There was an insert on duplicate deadlock problem on the line before. Based on this deadlock problem, this paper will share the process of investigation and analysis, hoping to be helpful to everyone. Deadlock case recovery Table structure: CREATE TABLE `song_rank` ( `id` int(11) N ...

Added by timecatcher on Tue, 03 Sep 2019 13:55:44 +0300

GraphQL-Sword and Bridge for Front-end Development

Links to the original text: https://www.cnblogs.com/zhuanzhuanfe/p/10324700.html Basic concepts GraphQL GraphQL is a query language for the API, developed by Facebook and open source, and runs on the server side using a type-based syst ...

Added by pipeten on Mon, 02 Sep 2019 15:26:26 +0300

A simple understanding of scrapy

Scrapy scrapy framework, asynchronous crawler framework. Synchronization and Asynchronization Synchronization: The next method relies on the previous method. If the previous method is not finished, the next method will not be executed. Asynchronou ...

Added by CaptainStarbuck on Mon, 02 Sep 2019 04:51:31 +0300

Performance-related data reference automatically generated by MySQL runtime

A master once said that he knows the database he manages as well as his wife. Personally, he thinks it contains two aspects of understanding: 1. At the level of stability, more attention is paid to high-level measures such as high availability, separation of reading and writing, load balancing, disaster preparedness management and so on. 2. A ...

Added by jnewing on Sun, 01 Sep 2019 14:48:01 +0300

Oracle creates partition tables and simple operations for partitions

oracle 11g supports automatic partitioning, but partitioning must be set when creating tables. If an existing table needs to be partitioned, it is necessary to rename the current table, create a new table, copy the data to the new table, and the ...

Added by sbourdon on Fri, 30 Aug 2019 11:18:29 +0300