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.
CN110716944AActive Publication Date: 2020-01-21SUNING CLOUD COMPUTING CO LTD

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
SUNING CLOUD COMPUTING CO LTD
Publication Date
2020-01-21

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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