Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for account balance update

A technology for account balance and balance, applied in the field of data processing, can solve problems such as insufficient account balance and account balance breakdown, and achieve the effects of high concurrency, reduced update operation frequency, and avoidance of lock competition.

Inactive Publication Date: 2016-09-07
CHINA UNIONPAY
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the prior art, in the case of batch updating of hot account balances, since the judgment and update of whether the balance is sufficient or not is not performed in real time, it is equivalent to recording the subsidiary account first, and then periodically summarizing and updating the balance, so it is possible to When the balance was updated, it was discovered that the account balance was insufficient, and there was a risk of the account balance being broken down

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 account balance update
  • Method and device for account balance update
  • Method and device for account balance update

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0045] In the embodiment of the present invention, each transaction record corresponding to the target account within the set time period is determined; if the sum of the transaction amount of all the determined transaction records and the balance of the target account is less than the threshold, delete from all the determined transaction records Part of the transaction records, so that the sum of the transaction amount of all the delete...

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 account balance update. The method includes that every transaction record corresponding to a target account in the set time length is determined; if the sum of the transaction amount sum of the determined transaction records and the balance of a target account is less than the threshold, some of the transaction records are deleted from the determined transaction records to make sure that the sum of the transaction amount sum of the transaction records after the deletion and the balance of the target account is not less than the threshold. According to the invention, every transaction record of the target account in the set time length is determined at first, compared with the prior art that the balance of the target account is updated in real time, the method provided prevents the waiting caused by lock contention and improves the system response speed; and furthermore, some of the transaction records are deleted from the determined transaction records to make sure that the sum of the transaction amount sum of the transaction records after the deletion and the balance of the target account is not less than the threshold, so that the breakdown probability of the account balance is small.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a method and device for updating account balance. Background technique [0002] Bank accounting systems and payment and settlement systems often face hot account issues. According to business characteristics, some accounts in these systems need to interact frequently with other accounts, and account balances need to be updated frequently, thus becoming hot accounts. [0003] Usually, in accounting processing, each account balance update needs to lock the relevant account, so as to avoid data inconsistency caused by other operations on the account being processed again. However, as the business volume continues to increase, hot accounts Multiple concurrent operations will be generated in an instant, and the application frequently initiates update requests to the same account in the database. Since only one thread can hold the resource lock at that time, other threads must wait for ...

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): G06Q40/00
Inventor 冯哲吴金坛
Owner CHINA UNIONPAY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products