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.
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
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.
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.
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.
Smart Images

Figure CN114253978B_ABST