A bank card number generation method and device

By optimizing the database storage structure and caching method, the problem of high storage pressure during the bank card number generation process was solved, achieving the effect of fast bank card number generation.

CN114253978BActive Publication Date: 2026-05-29WEBANK (CHINA)

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WEBANK (CHINA)
Filing Date
2021-12-21
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing technologies place excessive pressure on database and cache storage when generating bank card numbers, and the generation speed is slow, failing to meet users' needs for quickly generating suitable bank card numbers.

Method used

A new database storage structure and caching method are adopted. The database stores unique and usable card segment information corresponding to the last digit of each card number. The cache retrieves the last digit and card segment information by using the low-order last digit as an index in the cached record, reducing the cache size and improving the hit rate. There is no need to frequently search the database when generating bank card numbers.

Benefits of technology

It reduces the storage pressure on the database and cache, improves the speed of generating bank card numbers, and can quickly respond to users' requests for generating custom last digits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114253978B_ABST
    Figure CN114253978B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a bank card number generation method and device. The method comprises: determining whether first card number information with a self-selected tail number exists in the cache for the self-selected tail number of the bank card number; each card number information in the cache is loaded based on each card number information in the database; the database stores each card number information in a manner that each card number tail number corresponds to unique available card segment information; generating a bank card number based on the first card number information existing in the cache, and synchronously updating the first card number information in the cache and the database to second card number information; the second card number information has the same card number tail number and different card segment information as the first card number information, and the card segment information in the second card number information is in an available state. Without generating various bank card numbers in advance, the corresponding bank card number is generated quickly and in real time according to the current card selection demand of the user; the storage pressure of the database and the storage pressure of the cache are greatly reduced; and the speed of generating the bank card number is improved.
Need to check novelty before this filing date? Find Prior Art