CN113660201B - Control method and control device for high concurrency primary key conflict - Google Patents

Control method and control device for high concurrency primary key conflict Download PDF

Info

Publication number
CN113660201B
CN113660201B CN202110774260.4A CN202110774260A CN113660201B CN 113660201 B CN113660201 B CN 113660201B CN 202110774260 A CN202110774260 A CN 202110774260A CN 113660201 B CN113660201 B CN 113660201B
Authority
CN
China
Prior art keywords
registration request
request information
registration
information
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110774260.4A
Other languages
Chinese (zh)
Other versions
CN113660201A (en
Inventor
池定龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai 2345 Network Technology Co ltd
Original Assignee
Shanghai 2345 Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai 2345 Network Technology Co ltd filed Critical Shanghai 2345 Network Technology Co ltd
Priority to CN202110774260.4A priority Critical patent/CN113660201B/en
Publication of CN113660201A publication Critical patent/CN113660201A/en
Application granted granted Critical
Publication of CN113660201B publication Critical patent/CN113660201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/18Network architectures or network communication protocols for network security using different networks or channels, e.g. using out of band channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration

Abstract

The invention discloses a control method for high concurrency primary key conflict, which comprises the following steps: a. receiving two or more registration request messages within a first threshold time; b. judging whether the same identification information exists in the two or more registration request information; c. and if the same identification information exists, selecting to register one piece of registration request information. The invention can effectively solve the problem that a plurality of registration request messages generated when the same mobile phone number is registered in the same time period can not be processed, and provides corresponding solutions, in particular, different solutions are provided according to different registration time, types and contents.

Description

Control method and control device for high concurrency primary key conflict
Technical Field
The invention belongs to the technical field of Internet, and particularly relates to a control method and a control device for high concurrency primary key conflict.
Background
In the current information network era, no matter a computer terminal or a mobile terminal, a mobile phone can be used as an identity authentication mode to give a user ID or a user identification to a user, and the user registers the acquired user ID or user identification through a mobile phone number as a login account of the user and combines a password set by the user to realize login of applications of various clients, APP and WEB terminals.
However, in the actual use process, the user may repeatedly submit two or more request registration information within a certain period of time for some reasons, and the system cannot repeatedly process the request registration information, so that a conflict occurs, or the user may recognize that the user is wrong, cannot process, and the like, and meanwhile, the user may want to use the same mobile phone number to register, but cannot process the request registration information due to the unrepeatability of the user ID.
At present, in the prior art, there is no technical solution capable of solving the above technical problems, and in particular, there is a lack of a control method and a control device for high concurrency primary key collision.
Disclosure of Invention
Aiming at the technical defects existing in the prior art, the invention aims to provide a control method for high concurrency primary key conflict, which comprises the following steps:
a. receiving two or more registration request messages within a first threshold time;
b. judging whether the same user unique identification information exists in the two or more registration request information;
c. if the same user unique identification information exists, selecting to register one piece of registration request information;
wherein in the step c, the step of selecting to register one piece of the registration request information is performed by:
c1'. When the filling information in the two or more registration request information is different, calculating expected benefit parameters of the registration request information corresponding to the registration subjects;
and c2'. Register the highest corresponding registration request information in the expected benefit parameters.
Preferably, in the step c, the step of selecting to perform registration processing on one piece of the registration request information is performed by:
and c1', selecting one piece of registration request information corresponding to the specific channel for registration processing.
Preferably, the method further comprises the following steps:
d. and rejecting other registration request information.
Preferably, the method further comprises the following steps:
d', replacing the unique identification information of the user in other registration request information, and carrying out registration processing on the other registration request information.
Preferably, after the first login is performed through the user account registered in the step d', the system prompts the registration information that has been modified for the unique identification information of the user.
According to another aspect of the present invention, there is provided a control apparatus for high concurrency primary key collision, comprising:
first receiving means: receiving two or more registration request messages within a first threshold time;
first judgment means: judging whether the same user unique identification information exists in the two or more registration request information;
first processing means: and if the same user unique identification information exists, selecting to register one piece of registration request information.
Preferably, the method further comprises:
and a second processing device: and rejecting other registration request information.
The invention discloses a control method for high concurrency primary key conflict, which is characterized in that two or more registration request information is received within a first threshold time, whether the same user unique identification information exists in the two or more registration request information is judged, and if the same user unique identification information exists, one registration request information is selected to be subjected to registration processing. The invention can effectively solve the problem that a plurality of registration request messages generated when the same mobile phone number is registered in the same time period can not be processed, and provides corresponding solutions, in particular, different solutions are provided according to different registration time, types and contents.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, given with reference to the accompanying drawings in which:
FIG. 1 is a schematic flow diagram of a control method for high concurrency primary key collision according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a specific process for selecting to register one piece of registration request information if the same identification information exists in the first embodiment of the present invention; and
fig. 3 shows a schematic structural connection diagram of a control device with high concurrency primary key collision according to another embodiment of the present invention.
Detailed Description
In order to better and clearly show the technical scheme of the invention, the invention is further described below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a control method for high concurrency primary key conflict according to an embodiment of the present invention, and it is understood by those skilled in the art that, in view of the deficiency of the prior art, the present invention discloses a control method for high concurrency primary key conflict, which effectively solves the problem that multiple registration request information generated when registering the same mobile phone number in the same time period cannot be processed, and provides a corresponding solution, including the following steps:
firstly, step S101 is performed, where two or more pieces of registration request information are received within a first threshold time, and it is understood by those skilled in the art that the first threshold time may be 30 seconds, 1 minute, 10 minutes, 30 minutes, 1 hour, 1 day, half month or even longer, that is, the system may process the registration request information within a period of time, where the registration request information is preferably provided with two or more pieces of registration request information, so that the solution of multiple pieces of registration request information is processed by the technical solution described in the present invention, and the registration request information is preferably registered by using identity information of a user, where in the specific embodiment shown in the present invention, the identity of the user is confirmed by using a mobile phone number, acquiring a sms, etc., and in other embodiments, the registration may also be completed by information such as an identity card, a driver license, a mailbox, etc., which will not affect the specific embodiments of the present invention.
Further, the user completes registration through the registration request information and submits the registration request information to a corresponding server through a network, and the server receives the registration request information. The network includes but is not limited to a wired network, but may also be a wireless network or others.
Then, step S102 is performed to determine whether the same identification information exists in the two or more registration request information, and it is understood by those skilled in the art that this step is a determination step, specifically, the identification information may be a mobile phone number of the user, an ID used by the user, or other information having a unique identifier of the user, that is, if the user uses the same mobile phone number or uses a corresponding ID to perform registration, it is determined that the same identification information exists in the two or more registration request information, and if the same identification information does not exist, it is not necessary to perform any processing.
Then, step S103 is performed, if the same identification information exists, a registration process is selected for one piece of registration request information, and those skilled in the art understand that this step mainly solves the technical problem existing in the same registration request information with conflict.
Finally, proceeding to step S104, other registration request information is rejected, in such an embodiment, according to step S103, one of two or more registration request information is selected, and for other registration request information, in a preferred embodiment, rejection processing is performed on all other registration request information, which mainly includes not processing all other registration request information, and feeding it back to the corresponding user of the registration request information, and further, the registration request information is deleted.
In another preferred embodiment, the present invention may reject other registration request information, replace the identification information in other registration request information, and perform registration processing on other registration request information, where in such an embodiment, if a user uses a mobile phone number to perform registration, that is, the identification information is a mobile phone number, further, if the user mobile phone number is "139XXXXXXXX", the user mobile phone number is registered, and replace the identification information in other registration request information, and perform registration processing on other registration request information, that is, replace the identification information to be "139XXXXXXXX1", "139 xxxxxxxa", or the like.
Further, after the user account registered in the above step is logged in for the first time, the system prompts the registration information of which the identification information has been changed, that is, the system replaces the identification information in other registration request information, and after changing to "139 xxxxxxxa", the system directly uses "139 xxxxxxxa" as the identification information to log in when logging in next time.
Fig. 2 shows a specific flow chart of selecting to register one piece of registration request information if the same identification information exists in the first embodiment of the present invention, as a preferred embodiment of the present invention, fig. 2 will select to register one piece of registration request information in a plurality of ways, specifically, in a preferred embodiment, select to register the earliest received piece of registration request information in the two or more pieces of registration request information, in such an embodiment, select to register the registration request information to be processed through the sequence of registration time, and in other embodiments, select to register the latest received piece of registration request information in the two or more pieces of registration request information, that is, the last received piece of registration request information is registered, which does not affect the specific embodiment of the present invention, and is not repeated herein.
In yet another preferred embodiment, as shown in fig. 2, the step S103 of performing the step of selecting to perform registration processing on one of the registration request information, specifically, includes:
first, step S1031 is performed to calculate expected benefit parameters of the registration subjects corresponding to the two or more registration request information, and those skilled in the art understand that, since the user cannot guarantee that the basic information filled in each registration is identical when registering, there may be a certain difference, for example, the filled-in age, sex, native place, education degree, etc., and the system will obtain the expected benefit parameters of the registration subjects corresponding to each registration request information through a weighting algorithm, etc., for example, since the ages filled in by the user are different when filling in, one is 10 years old, one is 28 years old, and the other information is identical, the system will determine that the expected benefit parameter of the age of 28 is higher than the expected benefit parameter of the age of 10.
Further, the registration processing is performed on the corresponding registration request information with the highest expected benefit parameter, for example, because the education degrees filled in by the users are different when the users are filled in, one is the family, the other information is the same, the system can judge that the expected benefit parameter of the family is higher than the expected benefit parameter of the family, when the filling information in the plurality of registration request information is different, the relative expected benefit parameter is obtained through a certain algorithm, and then the corresponding registration request information with the highest expected benefit parameter is selected for the registration processing.
In other very specific embodiments, the registration request information corresponding to the specific channel may be selected to perform the registration processing, in such embodiments, since the registration software, the client, the APP, and other programs are diversified, the system may have a tendency to the registration request information corresponding to the specific channel greater than other registration request information, in further preferred embodiments, if the registration place of the registration request information corresponding to the user is Shanghai and other cities, the registration processing may be preferentially performed on the registration request information corresponding to Shanghai, and if there is registration by the telecommunications and other operators, the registration processing may be preferentially performed on the registration request information corresponding to the telecommunications, and forms of invitation code, point privilege registration, and the like may be provided in addition to the specific channels of the location, the operators, and the like.
Fig. 3 shows a schematic structural connection diagram of a control device with high concurrency primary key collision according to another embodiment of the present invention.
According to another aspect of the present invention, a control device for high concurrency primary key collision is provided, including a first receiving device, which receives two or more registration request information within a first threshold time, where the working principle of the first receiving device may refer to the foregoing step S101, and is not repeated herein.
Further, the control device for high concurrency primary key conflict further includes a first judging device: the working principle of the first determining device may refer to the aforementioned step S102, and is not described herein.
Further, the control device for high concurrency primary key conflict further includes a first processing device, if the same identification information exists, the first processing device selects to perform registration processing on one piece of registration request information, and the working principle of the first processing device may refer to the foregoing step S103 and is not described herein.
Further, the control device for high concurrency primary key conflict further comprises a second processing device: the operation principle of the second processing device may refer to the aforementioned step S104 for rejecting other registration request information, which is not described herein.
The foregoing describes specific embodiments of the present invention. It is to be understood that the invention is not limited to the particular embodiments described above, and that various changes and modifications may be made by one skilled in the art within the scope of the claims without affecting the spirit of the invention.

Claims (6)

1. The control method for the high concurrency primary key conflict is characterized by comprising the following steps:
a. receiving two or more registration request messages within a first threshold time;
b. judging whether the same user unique identification information exists in the two or more registration request information;
c. if the same user unique identification information exists, selecting to register one piece of registration request information;
wherein in the step c, the step of selecting to register one piece of the registration request information is performed by:
c1'. When the filling information in the two or more registration request information is different, calculating expected benefit parameters of the registration request information corresponding to the registration subjects;
and c2'. Register the highest corresponding registration request information in the expected benefit parameters.
2. The control method according to claim 1, characterized by further comprising the step of:
d. and rejecting other registration request information.
3. The control method according to claim 1, characterized by further comprising the step of:
d', replacing the unique identification information of the user in other registration request information, and carrying out registration processing on the other registration request information.
4. A control method according to claim 3, wherein after a first login by the user account registered in said step d', the system prompts registration information for which the unique identification information of the user has been changed.
5. A control device for high concurrency primary key clash, comprising:
first receiving means (1): receiving two or more registration request messages within a first threshold time;
first judgment means (2): judging whether the same user unique identification information exists in the two or more registration request information;
first processing means (3): if the same user unique identification information exists, when filling information in the two or more registration request information is different, calculating expected benefit parameters of registration subjects corresponding to the two or more registration request information, and carrying out registration processing on the corresponding registration request information with the highest expected benefit parameters.
6. The control device according to claim 5, characterized by further comprising:
second processing means (4): and rejecting other registration request information.
CN202110774260.4A 2021-07-08 2021-07-08 Control method and control device for high concurrency primary key conflict Active CN113660201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110774260.4A CN113660201B (en) 2021-07-08 2021-07-08 Control method and control device for high concurrency primary key conflict

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110774260.4A CN113660201B (en) 2021-07-08 2021-07-08 Control method and control device for high concurrency primary key conflict

Publications (2)

Publication Number Publication Date
CN113660201A CN113660201A (en) 2021-11-16
CN113660201B true CN113660201B (en) 2023-05-30

Family

ID=78489254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110774260.4A Active CN113660201B (en) 2021-07-08 2021-07-08 Control method and control device for high concurrency primary key conflict

Country Status (1)

Country Link
CN (1) CN113660201B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104936282A (en) * 2015-06-04 2015-09-23 青岛海信移动通信技术股份有限公司 Method and device for registering converged communication service
CN107203145A (en) * 2016-03-17 2017-09-26 姜洪军 A kind of intelligent network management platform that interconnects containing smart terminal product and automatic control system
CN107491509A (en) * 2017-08-02 2017-12-19 腾讯科技(深圳)有限公司 A kind of customer attribute information method for digging, device and medium

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1152333C (en) * 2002-07-31 2004-06-02 华为技术有限公司 Method for realizing portal authentication based on protocols of authentication, charging and authorization
US7991396B2 (en) * 2003-06-09 2011-08-02 Qualcomm Incorporated Method and apparatus for broadcast application in a wireless communication system
GB2449890B (en) * 2007-06-06 2012-03-28 Ubiquisys Ltd Cellular basestation
CN101645802B (en) * 2008-08-04 2012-08-15 华为技术有限公司 Method and device for controlling contents
CN103269260A (en) * 2013-06-03 2013-08-28 腾讯科技(深圳)有限公司 Data transmission method, data receiving terminal, data sending terminal and data transmission system
WO2016029457A1 (en) * 2014-08-29 2016-03-03 酷派软件技术(深圳)有限公司 Registration processing method, processing system, and server for use in d2d communication
CN104184832B (en) * 2014-09-10 2017-10-03 北京国双科技有限公司 Data submission method and device in network application
CN104660595A (en) * 2015-02-10 2015-05-27 重庆善生缘科技有限公司 Rapid APP registration and execution method
CN105095462B (en) * 2015-07-30 2018-09-28 北京京东尚科信息技术有限公司 Handle the method and system of webpage repetitive requests
CN105653695A (en) * 2015-12-30 2016-06-08 青岛海尔智能家电科技有限公司 Concurrent data request processing method and device
CN105956435A (en) * 2016-06-07 2016-09-21 微梦创科网络科技(中国)有限公司 Mobile APP registration method and device and mobile APP registration login method and device
CN107969013B (en) * 2017-11-30 2020-08-18 Oppo广东移动通信有限公司 Method and device for detecting network access result and computer storage medium
CN109040209A (en) * 2018-07-23 2018-12-18 深圳市牛鼎丰科技有限公司 Intercept method, apparatus, computer equipment and the storage medium of repetitive requests
CN109726533B (en) * 2018-12-24 2022-04-26 北京百度网讯科技有限公司 User account judgment method and device
CN111339070A (en) * 2020-02-20 2020-06-26 上海二三四五网络科技有限公司 Order repeated submission control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104936282A (en) * 2015-06-04 2015-09-23 青岛海信移动通信技术股份有限公司 Method and device for registering converged communication service
CN107203145A (en) * 2016-03-17 2017-09-26 姜洪军 A kind of intelligent network management platform that interconnects containing smart terminal product and automatic control system
CN107491509A (en) * 2017-08-02 2017-12-19 腾讯科技(深圳)有限公司 A kind of customer attribute information method for digging, device and medium

Also Published As

Publication number Publication date
CN113660201A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
CN109495467B (en) Method and device for updating interception rule and computer readable storage medium
RU2012104365A (en) METHOD AND SERVER FOR INSTANT EXCHANGE OF MESSAGES
CN103984887A (en) Method and device for controlling user permission
CN108282393B (en) Friend adding method and device, computer equipment and readable storage medium
CN101192145A (en) Error in-time prompt method and system
CN108737339B (en) Activity sign-in method, user terminal, server and system
JP2008269477A (en) Membership service provision system and authentication method for new registration member
CN105992204A (en) Access authentication method of applications of mobile intelligent terminal and device
CN109831310B (en) Identity verification method, system, equipment and computer readable storage medium
CN108763251B (en) Personalized recommendation method and device for nuclear product and electronic equipment
CN112583799A (en) Processing method, related device, equipment and medium for registered account
CN109726545B (en) Information display method, equipment, computer readable storage medium and device
CN105208030A (en) Wireless network roaming method
CN112559013A (en) Video conference service system and gray scale upgrading method and device thereof
CN108111533A (en) The registration login method and system of APP
CN111414191A (en) Gray scale publishing method and device for small program
CN109977126B (en) Method and device for replacing identity, electronic equipment and storage medium
CN113660201B (en) Control method and control device for high concurrency primary key conflict
CN107623696B (en) User identity verification method and device based on user behavior characteristics
JP7008636B2 (en) How to check for phone number changes, devices, and systems
CN113487337A (en) Product information storage method, tracing method and block chain platform
CN110147964B (en) Talent evaluation system based on big data technology
CN109831492B (en) Method and device for accessing OTT application and server push message
CN109034944B (en) Method and device for maintaining data information of multiple users in same person
CN113966603A (en) Method for sharing server, client and cloud platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant