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

Object number generating method and device

A technology for generating devices and numbers, applied in the computer field, can solve problems such as reduced reliability of coupon numbers, database failures, performance problems, etc., and achieve the effects of avoiding single-point failure, avoiding concurrent synchronization, and improving reliability.

Inactive Publication Date: 2015-06-10
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF7 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The way to generate the existing electronic coupon number is: first obtain the current coupon number by querying the coupon database table, and add 1 on the basis of the current coupon number, and then use the added value as the new Output the coupon number, and save the incremented value to the coupon database table; there are two problems with this method: performance problem and single point problem
[0004] Performance problem: The existing method of generating coupon numbers uses SQL database to serve the generation of coupon numbers, and the coupon database table needs to be operated every time, which means that the generation of coupon numbers needs to be persisted with the data of coupon subject information Competing for limited database resources; the necessary data writing operations for each coupon issuance, while adding additional database read and write operations related to coupon numbers, which will inevitably lead to low efficiency in producing coupon numbers; in addition, Due to the problem of multi-threaded concurrent synchronization of the database, the database will fail, which will reduce the reliability of generating coupon numbers
[0005] Single-point problem: The existing coupon number generation method relies on a single database instance, the computer where the database instance is located and its network environment. In this single deployment mode, the coupon-related database instance, the computer where the database instance is located and its network environment It is inevitable that various problems may occur and cannot be accessed normally, so it is impossible to generate a new coupon number, which causes a single point of failure

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
  • Object number generating method and device
  • Object number generating method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0024] figure 1 is a schematic diagram of a method for generating an object number according to an embodiment of the present invention. Such as figure 1 As shown, taking the generation of coupon numbers in the field of e-commerce as an example, the method mainly includes the following steps S11 to S13.

[0025] Step S11: Obtain the current number in the specified memory...

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 provides an object number generating method and an object number generating device. The object number generating method and the object number generating device, on the one hand, contribute to improving the discount coupon number generating efficiency and the reliability, and on the other hand, facilitate avoiding the problem of single point of failure. The object number generating method comprises the following steps: acquiring the current number in a designated memory database; regarding the memory database as a single-threaded memory database; according to the preset step length, performing atomic increase based on the current number to obtain the generated number; outputting the generated number and saving the number to the designated memory database.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for generating object numbers. Background technique [0002] With the rapid development of e-commerce, online shopping has become a craze, and coupons, as one of the sales promotion methods of merchants, have also moved from traditional paper coupons to electronic coupons. With the development of business, while the number of electronic coupons is increasing, higher requirements are placed on the speed of coupon issuance. Each coupon corresponds to a unique coupon number, which requires the system to be fast and without duplication The implementation of coupon number generation. [0003] The way to generate the existing electronic coupon number is: first obtain the current coupon number by querying the coupon database table, and add 1 on the basis of the current coupon number, and then use the added value as the new Output the coupon number, and save the i...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/275
Inventor 周恩
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
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