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

Method and device for updating data

A data update and data technology, applied in the computer field, can solve problems such as waste of system resources, achieve the effect of small memory space and save system resources

Active Publication Date: 2014-03-26
SINA COM TECH (CHINA) CO LTD
View PDF11 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for updating data to solve the problem of waste of system resources in the prior art

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
  • Method and device for updating data
  • Method and device for updating data
  • Method and device for updating data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] figure 2 It is a flow chart of a data update method provided in Embodiment 1 of the present invention, specifically including the following processing steps:

[0057] Step 201, when there is data to be updated, store the updated data in the free storage space in the data table.

[0058] Step 202: Store the data index corresponding to the update data and the storage address of the update data in the data table in an update queue.

[0059] Wherein, the update queue can be an update circular queue. When the data index corresponding to the update data and the storage address of the update data in the data table are correspondingly stored in the update circular queue, each data in the update circular queue Each index is assigned a time stamp, and the time stamp indicates the time when the data index and the storage address corresponding to the data index enter the update circular queue.

[0060] When the number of effective positions of the data index stored in the update...

Embodiment 2

[0075] According to the data table in the data update method provided by the above-mentioned embodiments of the present invention, Embodiment 2 of the present invention also provides a method for reading data from the data table, such as image 3 As shown, it specifically includes the following processing steps:

[0076] Step 301, the visitor copies the index address table.

[0077] In this step, the visitor can copy the data index in the index address table and the storage address corresponding to the data index to the local index address table according to the index address table on the SHM, and use the local index address table as Copy index address table. The visitor can also copy the data index to be subscribed and the storage address corresponding to the data index to be subscribed in the index address table on the SHM to the local index address table according to the data index subscribed by itself, and copy the local index address table. The index address table serve...

Embodiment 3

[0085] Based on the same inventive concept, according to the data update method provided by the above-mentioned embodiments of the present invention, correspondingly, Embodiment 3 of the present invention also provides a data update device, the structural diagram of which is as follows Figure 4 shown, including:

[0086] The first storage unit 401 is used to store the update data in the free storage space in the data table when there is data to be updated;

[0087] The second storage unit 402 is configured to correspondingly store the data index corresponding to the update data and the storage address of the update data in the data table in an update queue;

[0088] The index address table update unit 403 is configured to use the storage address corresponding to the data index corresponding to the update data in the update queue to update the storage address corresponding to the data index in the index address table, and the index address table records the data The correspon...

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 method and device for updating data. The method for updating the data comprises the steps that when the data need to be updated, the data to be updated are stored in an idle memory space of a data table; a data index corresponding to the data to be updated and a memory address, in the data table, of the data to be updated are correspondingly stored in an updating queue; a memory address, corresponding to the data index corresponding to the data to be updated, in the updating queue is used for updating a memory address, corresponding to the data index, in an index address table, wherein the corresponding relation between data indexes of data stored in the data table and memory addresses, in the data table, of the stored data is recorded in the index address table. According to the scheme, compared with the prior art, copies of the data table are not needed, the occupied memory space is small, and system resources are saved.

Description

technical field [0001] The invention relates to the field of computers, in particular to a data updating method and device. Background technique [0002] The subscription / update (Pub / Sub) model is a model of how to publish and subscribe to a content node. The message publisher publishes the message to the content node, and the message subscriber subscribes to the message from the content node. The subscribed / updated message consists of the message keyword (key) and the data value (value) corresponding to the message. Generally, the message key does not change, and the value corresponding to the message changes frequently, so the value needs to be updated in time. This enables message subscribers to read the subscribed message content in a timely and accurate manner. [0003] At present, the main method for updating KV (key-value) data in the existing Pub / Sub model is: store the key and value of multiple messages in data table 1, and assign an entry pointer to data table 1 ...

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
CPCG06F16/2282G06F16/235
Inventor 黄旭
Owner SINA COM TECH (CHINA) CO LTD