Unlock instant, AI-driven research and patent intelligence for your innovation.

A small, high-concurrency deduction method for placing an order with inventory

A single order and inventory technology, which is applied in the field of order processing, can solve problems such as locks cannot be released, inventory deduction failures, and inventory deduction cannot be dealt with, achieving the effect of achieving convenience and increasing concurrency

Active Publication Date: 2021-06-25
商派软件有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the realization principle of the open source PHP+MYSQL e-commerce system is almost the same for order placement and inventory deduction, that is, order placement and inventory deduction are performed in transactions, but this transaction process cannot cope with high concurrency inventory deduction , in the high-concurrency ordering scenario, multiple users create multiple transactions and modify the inventory of a product at the same time, and MYSQL will lock the lock when modifying, resulting in the execution of the previous transaction. The lock cannot be released, and the subsequent deduction Reducing inventory will fail

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] In order to make the technical solutions of the present invention clearer and clearer to those skilled in the art, the present invention will be further described in detail below in conjunction with examples, but the embodiments of the present invention are not limited thereto.

[0018] This embodiment provides a small-scale, high-concurrency deduction inventory ordering method, including:

[0019] Create virtual pipelines, virtual external locks, virtual pipeline tables and virtual inventory pools respectively;

[0020] Each product corresponds to multiple virtual pipelines and multiple virtual inventory pools, and multiple virtual pipelines correspond to multiple virtual inventory pools one by one, and the virtual inventory pools are placed in the MYSQL data table;

[0021] In the case of high concurrency of inventory deduction, each transaction initiated first looks up the currently available virtual pipelines in the virtual pipeline table, finds non-LOCK virtual pip...

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 small-scale, high-concurrency deduction inventory ordering method, which belongs to the technical field of order processing, and respectively establishes virtual pipelines, virtual external locks, virtual pipeline tables and virtual inventory pools; each item corresponds to multiple virtual pipelines and multiple virtual pipelines. A virtual inventory pool, multiple virtual pipelines and multiple virtual inventory pools correspond one-to-one, and the virtual inventory pool is placed in the MYSQL data table; in the case of high concurrency of inventory deduction, each transaction initiated is first in the virtual pipeline table Find the currently available virtual pipes, find the non-LOCK virtual pipes in order, enter the corresponding inventory data in the virtual inventory pool through the virtual pipes, and modify the inventory; when the virtual inventory pool is unavailable, other available virtual pipes are automatically occupied and LOCKed Use this virtual pipeline to deduct multiple inventory pools. The present invention adopts an external lock mechanism to share concurrently with multiple inventory pools, which can linearly increase the concurrent amount, and is more convenient to realize.

Description

technical field [0001] The invention relates to a method for placing an order with deduction of inventory, in particular to a method for placing an order with deduction of inventory for small size and high concurrency, and belongs to the technical field of order processing. Background technique [0002] In recent years, e-commerce has been booming in our country, and people are becoming more and more accustomed to online shopping. With the development of electronic information, order service based on mobile Internet has been widely used. At present, the realization principle of the open source PHP+MYSQL e-commerce system is almost the same for order placement and inventory deduction, that is, order placement and inventory deduction are performed in transactions, but this transaction process cannot cope with high concurrency inventory deduction , in the high-concurrency ordering scenario, multiple users create multiple transactions and modify the inventory of a product at th...

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 Patents(China)
IPC IPC(8): G06Q30/06G06F16/28
CPCG06Q30/0635G06F16/284
Inventor 刘经永张学会徐唤春裴大鹏
Owner 商派软件有限公司