Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data processing method, data processing apparatus, and electronic device

A data processing and data technology, applied in the server field, can solve problems such as primary key conflicts, achieve the effect of avoiding primary key conflicts and realizing cluster synchronization

Inactive Publication Date: 2018-12-28
SHENZHEN MAIMAITI INFORMATION TECH CO LTD
View PDF9 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the present invention provides a data processing method, a data processing device, an electronic device, and a computer-readable storage medium, which can solve the primary key conflicts that may occur when multiple processes in a server write data to a database in a cluster mode problem, achieve cluster synchronization

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data processing method, data processing apparatus, and electronic device
  • Data processing method, data processing apparatus, and electronic device
  • Data processing method, data processing apparatus, and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

[0031] The embodiment of the present invention is applied to a server in a server cluster, for example, any server deployed in a server cluster providing an identity authentication service. The server cluster includes a cache database, and the cache database may be Redis.

[0032] Server cluster refers to the collection of multiple servers to provide the same service. The load balancing server is ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention is applicable to the technical field of a server, and provides a data processing method, a data processing device, an electronic device and a computer-readable storage medium. The data processing method is applied to a server in a server cluster. The method comprise generating a unique identification corresponding to the critical value data; judging whether the unique identifier exists in the cache database; if the unique identifier does not exist in the cache database, creating the unique identifier in the cache database; writing the data to be processed into the cache database.The invention can solve the problem of primary key conflict that may occur when a plurality of processes in a server write data into a database under a cluster mode, and realize cluster synchronization.

Description

technical field [0001] The invention belongs to the technical field of servers, and in particular relates to a data processing method, a data processing device, electronic equipment and a computer-readable storage medium. Background technique [0002] The data table is one of the most important components of the database. In the data table, the primary key (primary key) is referred to as the primary key, which is one or more fields in the table, and its value is used to uniquely identify a certain field in the data table. one record. For example, in a database storing identity information, the primary key of the identity information data table may be the ID number field. [0003] Servers generally use Java multi-threaded concurrent processing to improve data processing speed. However, when multiple threads write data to the database at the same time, the system may cause a primary key conflict and throw an exception. For example, when two threads insert identity informati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
Inventor 陈全友
Owner SHENZHEN MAIMAITI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products