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

A read-write control method, device and server

A read-write control and read-lock technology, applied in the computer field, can solve problems such as task failure and data processing error, so as to avoid errors and ensure normal operation

Active Publication Date: 2021-06-29
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when a write operation is involved and the data modified by the write operation is being used by other data processing processes, it often leads to errors in related data processing results or even task failures

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 read-write control method, device and server
  • A read-write control method, device and server
  • A read-write control method, device and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.

[0053] In order to solve the problems existing in the prior art, the embodiment of the present invention provides a read-write control method, device and server.

[0054] The following firstly describes the read / write control method provided by the embodiment of the present invention.

[0055] The read-write control method provided by the embodiment of the present invention can be applied to the server, see figure 1 , the read-write control method may include the following steps:

[0056]S101: Monitor the data request for the data warehouse; the data request includes: read data request or write data request;

[0057] Before monitoring the data request for the data warehouse, the server can create a write lock node and a read lock node for each storage unit in the data warehouse through zookeeper (dist...

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

Embodiments of the present invention provide a read-write control method, device, and server. The method includes: monitoring a data request for a data warehouse; the data request includes: a read data request or a write data request; according to the occupancy status of the write lock node of the storage location requested by the data request, assign the write lock node to the data request; When the data request is a read data request and the data request is assigned to a read lock node with a storage location, change the occupied state of the write lock node to unoccupied and release the read data request; when the data request is a write data request and the read lock node is not occupied , the write data request is released. In this way, the read operation and the write operation can be coordinated to be performed in sequence, and the problem of data processing result error or even task failure caused by parallel read and write can be avoided.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a read-write control method, device and server. Background technique [0002] Data Warehouse (DW) is a mainstream technology for storing massive data. At present, the data warehouse is often used to store data, and the data stored in the data warehouse is used for data analysis and machine learning training. [0003] The inventor found in the process of implementing the present invention that the data operations involved in the data warehouse are mainly data queries, that is, mainly read operations, and few write operations are involved. However, when a write operation is involved and the data requested to be modified by the write operation is being used by other data processing processes, errors in related data processing results or even task failures often result. Contents of the invention [0004] The purpose of the embodiments of the present invention is to prov...

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): G06F16/23G06F16/2458G06F16/28
CPCG06F16/2379G06F16/2458G06F16/283
Inventor 易帆康林段效晨秦占明赵艳杰
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD