Data truncation method and device

A data truncation and database technology, applied in the field of distributed computing, can solve problems such as large occupation of computing resources, affecting program computing performance, etc., to reduce consumption, ensure data, and avoid confusion.

Active Publication Date: 2020-01-21
SUNING CLOUD COMPUTING CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the memory can only be run on an independent machine, which is not a problem, not in distributed computing; as for the file and database logo, the computing resources caused by these two solutions will be very large, affecting the computing performance of the program

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 truncation method and device
  • Data truncation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

[0051] figure 1 It is a flowchart of a data truncation method according to an exemplary embodiment. This method can be applied to data truncation when recalculating prices, including the following steps:

[0052] Step 101: When receiving a computing task, check whether there is a global lock;

[0053] Step 102: If it does not exist, set a global lock according to the computing task, a...

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 relates to a data truncation method and device, and the method comprises the steps: detecting whether a global lock exists or not when a calculation task is received; if not, setting a global lock according to the calculation task, and performing data truncation according to the calculation task; and if so, judging whether to execute the calculation task or not according to the attribute of the global lock. According to the scheme, the global lock is adopted to guarantee the accuracy of distributed computing data truncation, generation of error data is reduced and controlled, theaccuracy of the data is guaranteed from the source, and losses caused by disorder possibly caused by data truncation are avoided. Consumption of a file system and a database is reduced, and overall operation performance of the system is improved.

Description

technical field [0001] The present application relates to the technical field of distributed computing, and in particular to a data truncation method and device. Background technique [0002] When the price driver is generated, the recalculation of the existing price is triggered. Multiple price drivers of the same business dimension in the same period of time may be calculated on different machines at the same time point. If no guarantee is adopted, It will lead to data confusion. [0003] For example: there is a product A in the database with an effective time from 2019-01-01 to 2019-12-31, the base price is 10 yuan, and now there is a supply of A product from 2019-01-01 to 2019-10-01 Price driver (assuming that the reserve price calculated by the supply price driver is 15 yuan), followed by another contract driver within the time period (assuming the reserve price calculated by the contract driver is 5 yuan), this time triggers the recalculation of the reserve price of c...

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/23
CPCG06F16/2329G06F16/2343
Inventor 邱进许军周毅司孝波
Owner SUNING CLOUD COMPUTING CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products