Database deadlock processing method and device
A processing method and technology of a processing device, applied in the database field, can solve problems such as poor timeliness, increase the maintenance workload of the host system, and fail to detect database deadlocks in time, so as to achieve strong timeliness, reduce maintenance workloads, and prevent database deadlocks. Effect
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2020-12-04
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention relates to the technical field of databases, in particular to a database deadlock processing method and device. Background technique
[0002] Existing host systems have powerful concurrent transaction processing capabilities. The so-called transaction refers to a program execution unit in which the database system in the host system accesses and possibly updates various data in the database. In a system using database tables, as long as there are a large number of concurrent updates to centralized resources (data), database deadlocks will inevitably occur (Deadlock, which means that in a database system, suppose there is a transaction T1 that blocks data A, and a transaction T2 that blocks data B. After that, transaction T1 applies to block data B, and transaction T2 also applies to block data A. Since transaction T1 has blocked data A, transaction T2 has blocked data B, so transaction T1 and other transaction T2 appear, and transaction T...
Examples
Embodiment Construction
[0060] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
[0061] In view of the master-subordinate relationship between data records, it is necessary to update the master record when processing sub-records. If the master-sub-records are not in the same database partition and are not processed in the same job, deadlock may occur between jobs. The invention proposes a database deadlock processing method, which prevents in advance, preprocesses data, redistributes data to be processed, and prevents database...