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

Data writing method and device and computer equipment

A technology of data writing and data writing, applied in computing, multi-programming devices, electronic digital data processing, etc., can solve the problems of server storage and the inability of the buffer to be sent in time, and achieve the effect of avoiding wasting resources

Active Publication Date: 2020-12-15
ZHUHAI DAHENGQIN TECH DEV CO LTD
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Therefore, the technical problem to be solved by the present invention is to overcome the defect in the prior art that the buffer cannot be sent to the server for storage in time when the buffer is full, thereby providing a data writing method, device and computer equipment

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 writing method and device and computer equipment
  • Data writing method and device and computer equipment
  • Data writing method and device and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0041] As an optional implementation of the present invention, the data writing method also includes:

[0042] Determine the amount of temporarily stored data in the first sub-buffer when the first preset interval is reached.

[0043] Exemplarily, the first preset interval can be set slightly shorter, and the first preset interval can be set according to the actual usage of the first sub-buffer. For the method for determining the quantity of temporarily stored data in the first sub-buffer and the method for obtaining the preset interval duration, please refer to the specific description of the above step S13, which will not be repeated here.

[0044] When the amount of temporarily stored data in the first sub-buffer is greater than or equal to a first preset threshold, the data to be written is written into HBase.

[0045] Exemplarily, the first preset threshold may be reasonably set according to the storage capacity of the first sub-buffer, and this embodiment of the present...

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 writing method and device and computer equipment, and the method comprises the steps: initiating a writing request according to to-be-written data when the to-be-writtendata is received, wherein the writing request comprises the to-be-written data; writing the to-be-written data into a buffer according to the writing request; determining the number of temporarily stored data in the buffer when a preset interval duration is reached; and when the quantity of the temporary storage data in the buffer is greater than or equal to a preset threshold, writing the to-be-written data into an HBase. The number of the temporary storage data in the buffer is detected when the preset interval duration is reached, so that the to-be-written data is written into the HBase astimely as possible, meanwhile, whether the number of the temporary storage data in the buffer is larger than or equal to the preset threshold value or not is judged, and the problem that resources are wasted due to the fact that the data is written into the HBase when the data size is small is avoided.

Description

technical field [0001] The invention relates to the technical field of video storage, in particular to a data writing method, device and computer equipment. Background technique [0002] Video surveillance technology is used in all aspects of social production and life. The mining and analysis of video data has great guiding significance for follow-up work. Therefore, effective storage technology is needed to store video surveillance data to provide support for mining and analysis. HBase is a distributed, column-oriented storage system built on top of HDFS, which can efficiently store video data. However, the client will only send it to the server for storage after the cache is full. When the cache is not full for a long time, the data will always be temporarily stored in the cache and cannot be sent to the server for storage in time. Contents of the invention [0003] Therefore, the technical problem to be solved by the present invention is to overcome the defect in the...

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/182G06F16/172G06F9/54
CPCG06F16/182G06F16/172G06F9/547
Inventor 邓练兵方家钦卢振兴
Owner ZHUHAI DAHENGQIN TECH DEV CO LTD