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

Read-write control method and 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 result error

Active Publication Date: 2019-10-11
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF9 Cites 3 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
  • Read-write control method and device and server
  • Read-write control method and device and server
  • Read-write control method and 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

The embodiment of the invention provides a read-write control method, a read-write control device and a server. The method comprises the steps of monitoring a data request for a data warehouse, wherein the data request comprises a data reading request or a data writing request; allocating a write lock node to the data request according to the occupation state of the write lock node of the storageposition requested to be accessed by the data request; when the data request is a data reading request and the data request is allocated to obtain the read lock node of the storage position, changingthe occupation state of the write lock node into an unoccupied state and releasing the data reading request; and when the data request is a data writing request and the read lock node is not occupied,releasing the data writing request. Therefore, the reading operation and the writing operation can be coordinated to be carried out in sequence, and the problems of errors of data processing resultsand even task failures caused by parallel reading and writing are 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
IPC IPC(8): G06F16/23G06F16/2458G06F16/28
CPCG06F16/2379G06F16/2458G06F16/283
Inventor 易帆康林段效晨秦占明赵艳杰
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD