Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for data processing

A data and current data technology, applied in the field of communication network, can solve the problems of serious consumption of Slave resources, weak data anti-pollution ability, simultaneous data pollution, etc.

Active Publication Date: 2018-07-03
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when using the existing technology to store data, the inventors found that the prior art has at least the following problems: since the data stored in the Master and the Slave are the same, the same amount of hardware resources are required, and as the amount of user data continues to increase, the resources of the Slave The cost is serious; and the Master and Slave adopt the same storage method, so that when the data in the Master is polluted, the data stored in the Slave has a higher probability of being polluted at the same time, resulting in weak anti-pollution ability of the data, and the security cannot be guaranteed

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
  • A method and device for data processing
  • A method and device for data processing
  • A method and device for data processing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] The embodiment of the present invention provides a data storage method, the execution subject of the method may be the master device Master, such as figure 1 As shown, the method includes:

[0046] Step 101, the main device receives the input data, updates the current data serial number of the main controller, and saves the data for the first time;

[0047] For example, the data required for login input by the user is received, and the current data serial number is updated according to SN'=SN+1, wherein SN is the current data serial number, and SN' is the updated data serial number. That is, the master device does not receive a new set of data, and adds 1 to the current data sequence number. Here "a set" means at least one piece of data that can be used for login.

[0048] For example, the data may be a login ID (Identity, identity identification), password, nickname, grade, age, gender, remarks, etc. required to log in to a certain game.

[0049] Optionally, the fir...

Embodiment 2

[0078] An embodiment of the present invention provides a data processing method, such as image 3 As shown, the method includes:

[0079] Step 301, the master device receives the input data, updates the current data serial number of the master device, and saves the data for the first time;

[0080] For example, the data required for login input by the user is received, and the current data serial number is updated according to SN'=SN+1, wherein SN is the current data serial number, and SN' is the updated data serial number. That is, the master device does not receive a new set of data, and adds 1 to the current data sequence number. Here "a set" means at least one piece of data that can be used for login.

[0081] For example, the data may be a login ID (Identity, identity identification), password, nickname, grade, age, gender, remarks, etc. required to log in to a certain game.

[0082] Optionally, the first saving refers to saving the data in a third-party database MYSQL...

Embodiment 3

[0110] An embodiment of the present invention provides a device for data storage, which can be a master device, such as Figure 5 As shown, the device includes: a receiving module 501, a saving module 502, and a synchronization module 503;

[0111] The receiving module 501 is used to receive the input data and update the current data serial number of the main controller;

[0112] Optionally, receive the data required for login input by the user, and update the current data serial number according to SN'=SN+1, where SN is the current data serial number, and SN' is the updated data serial number. That is, the master controller does not receive a new set of data, and performs the operation of adding 1 to the current data serial number. Here "a set" means at least one piece of data that can be used for login.

[0113] For example, the data may be a login ID (Identity, identity identification), password, nickname, grade, age, gender, remarks, etc. required to log in to a certain ...

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 discloses a data processing method and device, relates to the technical field of communication networks, can reduce resource consumption and improve data security. In the solution provided by the embodiment of the present invention, the master device receives the input data, updates the current data serial number of the master device, and saves the data for the first time; the master device sends the data to at least one slave device; The slave device receives the data sent by the master device, and updates the current data serial number of the slave device; the slave device selects part of the data according to a preset selection condition for second storage. The solutions provided by the embodiments of the present invention are suitable for data storage.

Description

technical field [0001] The present invention relates to the technical field of communication networks, in particular to a data processing method and device. Background technique [0002] With the rapid development of Internet applications, more and more data needs to be stored in information systems. In order to improve user experience, ensure service stability and have the ability to resist disasters, data storage generally adopts redundant hot backup methods, such as MYSQL multi-machine hot backup, and data is saved in multiple copies. [0003] In existing disaster recovery systems, databases with the same structure are usually used to store primary data and backup data respectively. When the master device Master, which stores the master data, receives the write request from the upper logical processor to write data, it transmits the data to the slave device Slave in a synchronous manner. Normally, users log in through the Master. When an exception occurs on the Master, ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/14G06F17/30
Inventor 刘里田明周智昊王瑶
Owner TENCENT TECH (SHENZHEN) CO LTD