Method for update processing, and apparatus
AssigneeFujitsu Limited
InventorsKiichi Yamada, Naohiro Itou, Masahiko Nagata, Mitsuhiro Kinomura
Life of this patent
Estimating the term…
Abstract
A method includes: upon receipt of a request of update processing for a first record including a numerical data item in a database, generating, by a processor, a second record by duplicating the first record while a value corresponding to an update content of the update processing is set to the numerical data item, the update processing being processing of updating the value of the numerical data item according to the update content; and executing the update processing for the second record in response to the request.
Claims12
A method executed by a computer, the method comprising:
- storing a first record including a first numerical data in a database;
- receiving a subtraction request to subtract a second numerical data from the first numerical data of the first record;
- generating, in response to a reception of the subtraction request, a second record including the second numerical data indicated by the subtraction request and modifying the first numerical data of the first record to a third numerical data obtained by subtracting the second numerical data from the first numerical data, wherein the first record is set in an unlocked state to enable a process for another request and the second record is set in a locked state in which any requests other than the subtraction request is blocked;
- and
- deleting the second record in accordance with confirmation of the processing the subtraction request.
An apparatus comprising:
- a memory configured to store a first record including a first numerical data in a database;
- and
- a processor coupled to the memory and configured to execute a process including:
- receiving a subtraction request to subtract a second numerical data from the first numerical data of the first record;
- generating, in response to a reception of the subtraction request, a second record including the second numerical data indicated by the subtraction request and modifying the first numerical data of the first record to a third numerical data obtained by subtracting the second numerical data from the first numerical data, wherein the first record is set in an unlocked state to enable a process for another request and the second record is set in a locked state in which any requests other than the subtraction request is blocked;
- and
- deleting the second record in accordance with confirmation of the processing the subtraction request.
Dependencies are inferred from the claim text.