Information query method, device, equipment and medium

By storing the user group list of different users in the user group database, the problem of too long system time consuming when querying user groups is solved, and the query efficiency and system performance optimization are achieved.

CN114579616BActive Publication Date: 2025-05-16JINGDONG TECH HLDG CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210217765.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-07
Publication Date
2025-05-16
Estimated Expiration
2042-03-07

AI Technical Summary

Technical Problem

In the process of Internet marketing, as the number of user groups increases, in the process of querying whether a user belongs to multiple user groups, it is necessary to call user group information multiple times, resulting in too long time in the system.

Method used

By storing the user group lists corresponding to different users in the user group database, the user group list associated with the target user is determined from the database based on the target user identification information in the information query instruction, and the query results are output.

Benefits of technology

The system time-consuming process is reduced when querying whether a user belongs to multiple user groups, and the system performance decline caused by the increase in the number of user groups is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114579616B_ABST
    Figure CN114579616B_ABST
Patent Text Reader

Abstract

The present disclosure provides an information query method, device, equipment and medium. The information query method includes: obtaining an information query instruction, wherein the information query instruction includes first identification information of a target user and second identification information of a target user group; determining a first user group list associated with the target user from a user group database according to the first identification information, wherein the user group database includes user group lists corresponding to different users respectively stored in a first preset storage structure; and outputting a query result for characterizing that the target user belongs to the target user group when it is determined that the second identification information exists in the first user group list.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and more specifically, to an information query method, device, equipment and medium. Background Art

[0002] In the process of Internet marketing, it is necessary to identify user groups and provide marketing services for different products to different user groups. However, with the deepening of the concept of "precision marketing" and the increase in marketing traffic, the rules for identifying user groups have increased and become more complex.

[0003] In this regard, the inventors found that there are at least the following problems in the related technology: when querying whether a user belongs to N user groups, it is necessary to call N user groups from the database through the interface. As the number of user groups increases, the number of calls increases, resulting in an increase in system time consumption. Summary of the invention

[0004] In view of this, the present disclosure provides an information query method, apparatus, device and medium.

[0005] A first aspect of the present disclosure provides an information query method, comprising:

[0006] Acquire an information query instruction, wherein the information query instruction includes first identification information of a target user and second identification information of a target user group;

[0007] Determine, according to the first identification information, a first user group list associated with the target user from a user group database, wherein the user group database includes user group lists corresponding to different users respectively stored in a first preset storage structure;

[0008] In the case where it is determined that the second identification information exists in the first user group list, a query result for indicating that the target user belongs to the target user group is output.

[0009] According to an embodiment of the present disclosure, before obtaining the information query instruction, the above method further includes:

[0010] Acquire a user list corresponding to the identification information of the user group from a user group database, wherein the user group database includes user lists corresponding to different user groups respectively stored in a second preset storage structure;

[0011] Assembling data of a plurality of user lists corresponding to identification information of user groups according to a first preset storage structure to obtain user group lists corresponding to different users respectively;

[0012] The user group lists corresponding to different users are stored in the user group database.

[0013] According to an embodiment of the present disclosure, the first preset storage structure includes: the user's identification information as the primary key and the identification information of one or more user groups as the secondary key; the second preset storage structure includes: the user group's identification information as the primary key and the identification information of one or more users as the secondary key.

[0014] According to an embodiment of the present disclosure, the above method further includes:

[0015] Acquiring user group change information, wherein the user group change information includes identification information of the changed user group;

[0016] According to the identification information of the changed user group, a first user list and a second user list are obtained from the user group database, wherein the first user list is a user list corresponding to the changed user group after the user group information is changed, and the second user list is a user list corresponding to the changed user group before the user group is changed;

[0017] Determining identification information of the user to be changed according to the first user list and the second user list;

[0018] According to the identification information of the changed user, a list of user groups to be changed corresponding to the changed user is determined in the user group database;

[0019] The list of user groups to be changed is changed according to the identification information of the user groups to be changed.

[0020] According to an embodiment of the present disclosure, determining the identification information of the changed user according to the first user list and the second user list includes:

[0021] Obtaining first user identification information from the first user list;

[0022] Acquire second user identification information from the second user list;

[0023] When the first user identification information is different from the second user identification information, the first user identification information is determined as the identification information of the first changed user, and the second user identification information is determined as the identification information of the second changed user.

[0024] According to an embodiment of the present disclosure, according to the identification information of the changed user, determining the list of user groups to be changed corresponding to the changed user from the user group database includes:

[0025] Determining the first changed user from a user group database according to the identification information of the first changed user;

[0026] According to the first changed user, a first user group list to be changed corresponding to the first changed user is determined.

[0027] According to an embodiment of the present disclosure, changing the list of user groups to be changed according to the identification information of the changed user group includes:

[0028] The identification information of the user group to be changed is added to the first user group list to be changed, so as to change the first user group list to be changed.

[0029] According to an embodiment of the present disclosure, determining a user group list to be changed corresponding to the changed user from a user group database according to the identification information of the changed user includes:

[0030] Determining the second changed user from the user group database according to the identification information of the second changed user;

[0031] According to the second changed user, a second user group list to be changed corresponding to the second changed user is determined.

[0032] According to an embodiment of the present disclosure, changing the list of user groups to be changed according to the identification information of the changed user group includes:

[0033] The identification information of the user group to be changed is deleted in the second user group list to be changed, so as to change the second user group list to be changed.

[0034] The second aspect of the present disclosure provides an information query device, including: a first acquisition module, a first determination module and an output module. The first acquisition module is used to obtain an information query instruction, wherein the information query instruction includes first identification information of a target user and second identification information of a target user group. The first determination module is used to determine a first user group list associated with the target user from a user group database based on the first identification information, wherein the user group database includes user group lists corresponding to different users respectively stored in a first preset storage structure. The output module is used to output a query result used to characterize that the target user belongs to the target user group when it is determined that the second identification information exists in the first user group list.

[0035] According to an embodiment of the present disclosure, the above-mentioned device also includes a second acquisition module, an assembly module, and a storage module. The second acquisition module is used to obtain a user list corresponding to the identification information of the user group from a user group database, wherein the user group database includes user lists corresponding to different user groups stored according to a second preset storage structure. The assembly module is used to assemble data of multiple user lists corresponding to the identification information of the user group according to the first preset storage structure to obtain user group lists corresponding to different users. The storage module is used to store the user group lists corresponding to different users in the user group database.

[0036] According to an embodiment of the present disclosure, the above-mentioned device also includes a third acquisition module, a fourth acquisition module, a second determination module, a third determination module, and a change module. The third acquisition module is used to obtain user group change information, wherein the user group change information includes the identification information of the changed user group. The fourth acquisition module is used to obtain a first user list and a second user list from a user group database according to the identification information of the changed user group, wherein the first user list is a user list corresponding to the changed user group after the user group information is changed, and the second user list is a user list corresponding to the changed user group before the user group is changed. The second determination module is used to determine the identification information of the changed user according to the first user list and the second user list. The third determination module is used to change the list of user groups to be changed according to the identification information of the changed user group. The change module is used to change the list of user groups to be changed according to the identification information of the changed user group.

[0037] According to an embodiment of the present disclosure, the second determination module includes a first acquisition unit, a second acquisition unit, and a first determination unit. The first acquisition unit is used to acquire the first user identification information from the first user list. The second acquisition unit is used to acquire the second user identification information from the second user list. The first determination unit is used to determine the first user identification information as the identification information of the first changed user and the second user identification information as the identification information of the second changed user when the first user identification information is different from the second user identification information.

[0038] According to an embodiment of the present disclosure, the third determination module includes a second determination unit and a third determination unit. The second determination unit is used to determine the first changed user from the user group database according to the identification information of the first changed user. The third determination unit is used to determine the first user group list to be changed corresponding to the first changed user according to the first changed user.

[0039] According to an embodiment of the present disclosure, the changing module includes an adding unit, which is used to add identification information of the changed user group in the first user group list to be changed, so as to change the first user group list to be changed.

[0040] According to an embodiment of the present disclosure, the third determination module further includes a fourth determination unit and a fifth determination unit. The fourth determination unit is used to determine the second changed user from the user group database according to the identification information of the second changed user. The fifth determination unit is used to determine the second user group list to be changed corresponding to the second changed user according to the second changed user.

[0041] According to an embodiment of the present disclosure, the changing module includes a deleting unit, which is used to delete the identification information of the changed user group in the second user group list to be changed, so as to change the second user group list to be changed.

[0042] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned information query method.

[0043] The fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned information query method.

[0044] The fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above-mentioned information query method when executed by a processor.

[0045] According to the embodiments of the present disclosure, because the user group lists corresponding to different users are stored in the user group database, after obtaining the information query instruction, the first user group list associated with the target user can be determined from the user group database according to the identification information of the target user in the information query instruction, and when it is determined that the identification information of the target user group exists in the first user group list, the query result that the target user belongs to the target user group is output. Therefore, the technical problem that when querying whether a certain user belongs to multiple user groups, the user group information needs to be called multiple times, which causes the system to consume too much time, is at least partially overcome, thereby achieving the technical effect that the query time does not increase with the increase in the number of user groups, thereby improving the system performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0047] Figure 1 The exemplary system architecture of the application information query method according to the embodiment of the present disclosure is schematically shown;

[0048] Figure 2 A flowchart of an information query method according to an embodiment of the present disclosure is schematically shown;

[0049] Figure 3 A flowchart of a method for storing data according to a first preset storage structure according to an embodiment of the present disclosure is schematically shown;

[0050] Figure 4A A schematic diagram of a first preset storage structure according to an embodiment of the present disclosure is shown;

[0051] Figure 4B A schematic diagram of a second preset storage structure according to an embodiment of the present disclosure is schematically shown;

[0052] Figure 5 A flowchart of a method for changing a user group in a user group database according to an embodiment of the present disclosure is schematically shown;

[0053] Figure 6 A logic block diagram of a method for changing a user group in a user group database according to an embodiment of the present disclosure is schematically shown;

[0054] Figure 7 A schematic diagram schematically shows the result of changing the user group in the user group database according to an embodiment of the present disclosure;

[0055] Fig. 8A Schematic diagram showing the comparison between the system time consumption according to the embodiment of the present disclosure and the system time consumption (TP99) in the related art

[0056] Figure 8B Schematic diagram showing the comparison between the system time consumption according to the embodiment of the present disclosure and the system time consumption (TP999) in the related art

[0057] Fig. 9 A structural block diagram of an information query device according to an embodiment of the present disclosure is schematically shown; and;

[0058] Fig.10 A block diagram of an electronic device suitable for implementing an information query method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0059] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0060] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0061] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0062] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0063] It should be noted that in the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of user personal information involved all comply with the provisions of relevant laws and regulations, have taken necessary confidentiality measures, and do not violate public order and good morals.

[0064] The embodiment of the present disclosure provides an information query method. The method includes determining a user group list associated with the target user from a user group database according to the identification information of the target user in the information query instruction, and determining whether the target user belongs to the target user group by matching the identification information of the target user group with the identification information of each user group in the user group list.

[0065] Figure 1 The exemplary system architecture 100 to which the information query method according to the embodiment of the present disclosure can be applied is schematically shown. It should be noted that: Figure 1What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0066] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.

[0067] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients and / or social platform software, etc. (only as examples).

[0068] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0069] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0070] It should be noted that the information query method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the information query device provided in the embodiment of the present disclosure can generally be set in the server 105. The information query method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the information query device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Alternatively, the information query method provided in the embodiment of the present disclosure can also be executed by the terminal devices 101, 102, or 103, or can also be executed by other terminal devices different from the terminal devices 101, 102, or 103. Accordingly, the information query device provided in the embodiment of the present disclosure can also be set in the terminal devices 101, 102, or 103, or can be set in other terminal devices different from the terminal devices 101, 102, or 103.

[0071] For example, the information query instruction can be obtained by any one of the terminal devices 101, 102, or 103 (for example, the terminal device 101, but not limited thereto). Then, the terminal device 101 can locally execute the information query method provided by the embodiment of the present disclosure, or send the information query instruction to other terminal devices, servers, or server clusters, and the other terminal devices, servers, or server clusters that receive the information query instruction execute the information query method provided by the embodiment of the present disclosure.

[0072] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0073] Figure 2 The flowchart of the information query method according to the embodiment of the present disclosure is schematically shown.

[0074] like Figure 2 As shown, the method includes operations S210 to S230.

[0075] In operation S210, an information query instruction is obtained, wherein the information query instruction includes first identification information of a target user and second identification information of a target user group.

[0076] According to an embodiment of the present disclosure, the information query instruction obtained may be to query whether user A is in user groups A1 to A100. The information query instruction includes identification information of user A and identification information of each user group of user groups A1 to A100, for example, identification information of user group A1 may be A1, identification information of user group A2 may be A2, and so on.

[0077] In operation S220, a first user group list associated with the target user is determined from a user group database according to the first identification information, wherein the user group database includes user group lists corresponding to different users respectively stored in a first preset storage structure.

[0078] According to an embodiment of the present disclosure, a first user group list associated with target user A is determined from a user group database. It is assumed that the first user group list includes user group A1, user group A2, and user groups B1 to B1000.

[0079] In operation S230, when it is determined that the second identification information exists in the first user group list, a query result representing that the target user belongs to the target user group is output.

[0080] According to an embodiment of the present disclosure, the identification information of the target user group can be matched with the user group identification information in the first user group list to determine whether the identification information of the target user group exists in the first user group list. For example, the target user group can be user group A1 to user group A100, the identification information of the target user group can be A1 to A100, and the first user group list can include user group A1, user group A2, and user group B1 to user group B1000. Then the query result that the target user A belongs to user group A1, user A belongs to user group A2, and user A does not belong to user groups A3 to A100 can be output.

[0081] According to the embodiments of the present disclosure, because the user group lists corresponding to different users are stored in the user group database, after obtaining the information query instruction, the first user group list associated with the target user can be determined from the user group database according to the identification information of the target user in the information query instruction, and when it is determined that the identification information of the target user group exists in the first user group list, the query result that the target user belongs to the target user group is output. Therefore, the technical problem that when querying whether a certain user belongs to multiple user groups, the user group information needs to be called multiple times, which causes the system to consume too much time, is at least partially overcome, thereby achieving the technical effect that the query time does not increase with the increase in the number of user groups, thereby improving the system performance.

[0082] Reference below Figure 3 to Figure 7 , combined with specific embodiments Figure 2 The method shown is further explained.

[0083] Figure 3 A flow chart of a method for storing data according to a first preset storage structure according to an embodiment of the present disclosure is schematically shown.

[0084] like Figure 3 As shown, operation S310 to operation S330 are included.

[0085] In operation S310, a user list corresponding to identification information of a user group is obtained from a user group database, wherein the user group database includes user lists corresponding to different user groups respectively stored in a second preset storage structure.

[0086] According to an embodiment of the present disclosure, for example, a user group database may store a user list corresponding to user group A1, and the user list includes user A, user B, user C, and user D belonging to user group A1. According to the identification information A1 of the user group, a user list including user A, user B, user C, and user D may be obtained from the user group database.

[0087] In operation S320, multiple user lists corresponding to identification information of user groups are assembled according to a first preset storage structure to obtain user group lists corresponding to different users.

[0088] According to the embodiment of the present disclosure, taking three user groups as an example, the user list corresponding to user group A1 obtained from the user group database includes user A, user B, user C, and user D, the user list corresponding to user group A2 includes user A and user B, and the user list corresponding to user group A3 includes user C and user D. After assembling data according to the first preset storage structure, the user group list corresponding to user A includes user group A1 and user group A2; the user group list corresponding to user B includes user group A1 and user group A2; the user group list corresponding to user C includes user group A1 and user group A3; the user group list corresponding to user D includes user group A1 and user group A3.

[0089] In operation S330, user group lists corresponding to different users are stored in a user group database.

[0090] According to an embodiment of the present disclosure, user group lists corresponding to user A, user B, user C, and user D are respectively stored in a user group database.

[0091] According to an embodiment of the present disclosure, after assembling the data in the user group database, a user group list corresponding to different users is obtained and stored in the user group database, so that when querying whether a user belongs to multiple user groups, it is only necessary to call the user group list from the user group database once to query all user groups, thereby saving system time.

[0092] Figure 4A A schematic diagram of a first preset storage structure according to an embodiment of the present disclosure is schematically shown.

[0093] like Figure 4A As shown, the first preset storage structure includes: the user's identification information as a primary key and the identification information of one or more user groups as a secondary key.

[0094] According to an embodiment of the present disclosure, for example: the identification information of user A is PIN1 (PIN: Personal identification number), and the user groups associated with user A include user group A1, user group A2, and user groups B1~B100. Then, in the first preset storage structure, the primary key is PIN1, and the secondary keys are A1, A2, B1~B100.

[0095] Figure 4B A schematic diagram of a second preset storage structure according to an embodiment of the present disclosure is schematically shown.

[0096] like Figure 4B The second preset storage structure includes: identification information of a user group as a primary key, and identification information of one or more users as a secondary key.

[0097] According to an embodiment of the present disclosure, for example, the identification information of user group A1 is A1, and the users associated with user group A1 include user A, user B, user C, and user D. The identification information of user A, user B, user C, and user D are PIN1, PIN2, PIN3, and PIN4, respectively. Then, in the second preset storage structure, the primary key is A1, and the secondary keys are PIN1, PIN2, PIN3, and PIN4.

[0098] According to an embodiment of the present disclosure, a first preset storage structure with user identification information as the primary key and identification information of one or more user groups as the secondary key can be used to obtain all user groups corresponding to the target user by querying the identification information of the target user, so as to query whether there is a target user group among all user groups, thereby improving the performance of the system during information query.

[0099] Figure 5 The flowchart of the method for changing the user group in the user group database according to the embodiment of the present disclosure is schematically shown.

[0100] like Figure 5 As shown, operations S510 to S550 are included.

[0101] In operation S510, user group change information is acquired, wherein the user group change information includes identification information of the changed user group.

[0102] According to an embodiment of the present disclosure, for example, the user group change information may be that the user group A1 is changed, and the identification information of the changed user group may be A1.

[0103] In operation S520, a first user list and a second user list are obtained from a user group database according to the identification information of the changed user group, wherein the first user list is a user list corresponding to the changed user group after the user group information is changed, and the second user list is a user list corresponding to the changed user group before the user group is changed.

[0104] According to an embodiment of the present disclosure, for example: after obtaining the changed user group information from the user group database based on the identification information A1 of the changed user group, a first user list corresponding to the changed user group includes user identification information PIN1, PIN2, and PIN3 of user A, user B, and user C. A second user list corresponding to the changed user group backed up before the user group information is changed is obtained from the user group database, and the second user list includes user identification information PIN2 and PIN3 of user B and user C.

[0105] In operation S530, identification information of the changed user is determined according to the first user list and the second user list.

[0106] According to an embodiment of the present disclosure, by comparing the user identification information in the first user list and the second user list, it is determined that the identification information of the changed user is PIN1 and PIN4.

[0107] In operation S540, according to the identification information of the changed user, a user group list to be changed corresponding to the changed user is determined in a user group database;

[0108] According to an embodiment of the present disclosure, based on the identification information PIN1 of the changed user, a user group list to be changed corresponding to the changed user A is determined in the user group database. It is assumed that the user group list to be changed includes user group B1, user group A2, and user group A3.

[0109] In operation S550, the list of user groups to be changed is changed according to the identification information of the changed user group.

[0110] According to an embodiment of the present disclosure, the identification information A1 of the user group A1 is added to the list of user groups to be changed corresponding to the changed user A. Then, in the user group database, the list of user groups corresponding to the changed user A includes user group A1, user group B1, user group A2, and user group A3.

[0111] According to the embodiment of the present disclosure, after obtaining the user group change information, the user lists corresponding to the changed user group before and after the change are compared through version comparison, the changed user is determined, and the user group list to be changed corresponding to the changed user is determined from the user group database according to the identification information of the changed user, and the user group list to be changed is changed according to the identification information of the changed user group. The user group list in the user group database is updated by using two different storage structures in the user group database and the changed user as the link.

[0112] According to an embodiment of the present disclosure, determining identification information of a changed user according to the first user list and the second user list includes:

[0113] Obtaining first user identification information from the first user list;

[0114] Acquire second user identification information from the second user list;

[0115] When the first user identification information is different from the second user identification information, the first user identification information is determined as the identification information of the first changed user, and the second user identification information is determined as the identification information of the second changed user.

[0116] According to an embodiment of the present disclosure, for example, the first user list includes user identification information PIN1, PIN2, and PIN3 of user A, user B, and user C. A second user list corresponding to the changed user group backed up before the user group information is changed is obtained from the user group database, and the second user list includes user identification information PIN2, PIN3, and PIN4 of user B, user C, and user D.

[0117] According to an embodiment of the present disclosure, for example, the first user identification information may be PIN1, and the second user identification information may be PIN4. Then, the identification information of the first changed user is PIN1, and the identification information of the second changed user is PIN4.

[0118] According to the embodiments of the present disclosure, through version thinking, the user lists corresponding to the user groups before and after the change are compared to determine the identification information of the changed user. The changed user identification information includes the newly added users and the reduced users in the changed user group. It is necessary to process the user group lists corresponding to the changed users in the user group database separately to complete the update of the user group database, laying the foundation for querying whether the target user belongs to the target user group.

[0119] According to an embodiment of the present disclosure, according to the identification information of the changed user, determining the list of user groups to be changed corresponding to the changed user from the user group database includes:

[0120] Determining the first changed user from a user group database according to the identification information of the first changed user;

[0121] According to the first changed user, a first user group list to be changed corresponding to the first changed user is determined.

[0122] According to an embodiment of the present disclosure, for example: based on the identification information PIN1 of the first user to be changed, it can be determined from the user group database that the first user to be changed is user A; based on user A, the first user group list to be changed corresponding to user A is determined, assuming that the first user group list to be changed includes user group B1, user group B2, and user group A2.

[0123] According to an embodiment of the present disclosure, changing the list of user groups to be changed according to the identification information of the changed user group includes:

[0124] The identification information of the user group to be changed is added to the first user group list to be changed, so as to change the first user group list to be changed.

[0125] According to an embodiment of the present disclosure, identification information of user group A1 is added to the first user group list to be changed, and the first user group list to be changed after the change includes user group A1, user group B1, user group B2, and user group A2.

[0126] According to the embodiments of the present disclosure, through version thinking, the user lists corresponding to the user groups before and after the change are compared, the user identification information added after the user group change is determined, and the changed user group is added to the user group list corresponding to the user in the user group database to complete the update of the user group database, so as to query whether the target user belongs to the target user group later.

[0127] According to an embodiment of the present disclosure, according to the identification information of the changed user, determining the list of user groups to be changed corresponding to the changed user from the user group database includes:

[0128] Determining the second changed user from the user group database according to the identification information of the second changed user;

[0129] According to the second changed user, a second user group list to be changed corresponding to the second changed user is determined.

[0130] According to an embodiment of the present disclosure, for example, the second user identification information to be changed may be PIN4, and the second user to be changed is determined from the user group database as user D. According to user D, the second user group list to be changed corresponding to user D is determined. Assume that the second user group list to be changed includes user group A1, user group B3, and user group B4.

[0131] According to an embodiment of the present disclosure, changing the list of user groups to be changed according to the identification information of the changed user group includes:

[0132] The identification information of the user group to be changed is deleted in the second user group list to be changed, so as to change the second user group list to be changed.

[0133] According to an embodiment of the present disclosure, the identification information A1 of the changed user group is deleted from the second user group list to be changed, and the second user group list to be changed corresponding to the changed user D includes user group B3 and user group B4.

[0134] According to the embodiments of the present disclosure, through version thinking, the user lists corresponding to the user groups before and after the change are compared, the user identification information reduced after the user group change is determined, and the changed user group is deleted from the user group list corresponding to the user in the user group database, and the update of the user group database is completed, so as to query whether the target user belongs to the target user group later.

[0135] Figure 6 A logical block diagram of a method for changing a user group in a user group database according to an embodiment of the present disclosure is schematically shown.

[0136] like Figure 6 As shown, operations S610 to S6100 are included.

[0137] In operation S610, change information of the user group A1 is obtained.

[0138] In operation S620, a first user list and a second user list are obtained from a user group database according to the identification information of the changed user group. The first user list is a user list corresponding to the user group A1 after the user group A1 is changed, including the identification information PIN1, PIN2, and PIN3 of the users, and the second user list is a user list corresponding to the user group A1 after the user group A1 is changed, including the identification information PIN2, PIN3, and PIN4 of the users.

[0139] In operation S630, it is determined according to the first user list and the second user list that after the user group A1 is changed, a user with identification information PIN1 is added, and a user with identification information PIN4 is removed.

[0140] In operation S640, a first user group list to be changed corresponding to the user whose identification information is PIN1 and a second user group list to be changed corresponding to the user whose identification information is PIN4 are determined from the user group database.

[0141] In operation S650, A1 is added to the first user group list to be changed, and A1 is deleted from the second user group list to be changed, thereby completing the updating of the user group database.

[0142] In operation S660, an information query instruction is obtained to query whether user A with identification information PIN1 belongs to user group B1, user group B2, or user group A1;

[0143] In operation S670, a user group list associated with user A is determined from the updated user group database;

[0144] In operation S680 , it is determined whether the identification information B1 , B2 , and A1 of the user group B1 , the user group B2 , and the user group A1 exist in the user group list.

[0145] In operation S690, if B1 exists in the user group list, a query result indicating that user A belongs to user group B1 is output.

[0146] In operation S6100, if B2 and A1 do not exist in the user group list, a query result indicating that user A does not belong to user group B2 or user group A1 is output.

[0147] Figure 7 The result diagram of changing the user group in the user group database according to an embodiment of the present disclosure is schematically shown.

[0148] like Figure 7As shown, the user group to be changed is obtained as user group A, and the user list corresponding to user group A before the change is obtained from the user group database, which can be regarded as the user list of version V1.0; the user list corresponding to user group A after the change can be regarded as the user list of version V1.1. By comparing the user lists of the two versions, it is determined that user PIN2 is added and user PIN3 is removed in the user list of version V1.1. Therefore, in the user group database after the change, user group A is added to the user group list corresponding to user PIN2, and user group A is deleted from the user group list corresponding to user PIN3.

[0149] According to the embodiments of the present disclosure, in the related technology, the storage structure in the user group database is that one user group corresponds to one user list. When it is necessary to query whether user A belongs to N user groups such as user group A, user group B, user group C, etc., it is necessary to send N query requests to query the user lists corresponding to the N user groups such as user group A, user group B..., etc. respectively, to determine whether user A exists in the N user lists, which causes the system to consume a long time, where N is a positive integer.

[0150] According to the embodiments of the present disclosure, since the storage structure in the user group data is one user corresponding to one user group list, when it is necessary to query whether user A belongs to N user groups such as user group A, user group B, user group C, etc., by sending one query request, the user group list corresponding to user A can be queried, and then the N user groups are matched with the user groups in the user group list, and the data matching process does not occupy the system time, thereby effectively reducing the system time consumption.

[0151] According to the embodiments of the present disclosure, in order to verify the technical effects of the embodiments of the present disclosure, a system stress test was conducted for marketing data requests during the same period, and the system time consumption when the information processing method of the present disclosure was adopted and the system time consumption when the information processing method in the related technology was adopted were obtained. Among them, TP99 represents the minimum time required to meet 999 percent of network requests. TP999 represents the minimum time required to meet 999 / 1000 network requests. The test results are shown in Table 1.

[0152] Table 1 System stress test result data comparison table

[0153]

[0154] In Table 1, the symbol A indicates that the information processing method in the related art is used; the symbol B indicates that the information processing method in the embodiment of the present disclosure is used. It should be noted that in the time period corresponding to the test time A and the test time B in the same row of Table 1, the marketing data request is the same.

[0155] Fig. 8A The figure schematically shows a comparison diagram of the system time consumption according to the embodiment of the present disclosure and the system time consumption (TP99) in the related art.

[0156] like Fig. 8A As shown, within the same time period of any marketing data request, the minimum time required to satisfy 999 percent of network requests using the embodiments of the present disclosure is lower than the minimum time required to satisfy 999 percent of network requests in the related art.

[0157] Figure 8B The diagram schematically shows a comparison between the system time consumption according to an embodiment of the present disclosure and the system time consumption (TP999) in the related art.

[0158] like Figure 8B As shown, within the same time period of any marketing data request, the minimum time required to satisfy 999 out of 1000 network requests using the embodiments of the present disclosure is lower than the minimum time required to satisfy 999 out of 1000 network requests in the related art.

[0159] Fig. 9 The structural block diagram of the information query device according to the embodiment of the present disclosure is schematically shown.

[0160] like Fig. 9 As shown, the information query device 900 includes: a first acquisition module 901, a first determination module 902 and an output module 903. The first acquisition module 901 is used to obtain an information query instruction, wherein the information query instruction includes first identification information of a target user and second identification information of a target user group. The first determination module 902 is used to determine a first user group list associated with the target user from a user group database according to the first identification information, wherein the user group database includes user group lists corresponding to different users respectively stored in a first preset storage structure. The output module 903 is used to output a query result used to characterize that the target user belongs to the target user group when it is determined that the second identification information exists in the first user group list.

[0161] According to an embodiment of the present disclosure, the above-mentioned device further includes a second acquisition module, an assembly module, and a storage module. The second acquisition module is used to acquire a user list corresponding to the identification information of the user group from a user group database, wherein the user group database includes user lists corresponding to different user groups stored according to a second preset storage structure. The assembly module is used to assemble data of multiple user lists corresponding to the identification information of the user group according to the first preset storage structure to obtain user group lists corresponding to different users. The storage module is used to store the user group lists corresponding to different users in the user group database.

[0162] According to an embodiment of the present disclosure, the above-mentioned device also includes a third acquisition module, a fourth acquisition module, a second determination module, a third determination module, and a change module. The third acquisition module is used to obtain user group change information, wherein the user group change information includes the identification information of the changed user group. The fourth acquisition module is used to obtain a first user list and a second user list from a user group database according to the identification information of the changed user group, wherein the first user list is a user list corresponding to the changed user group after the user group information is changed, and the second user list is a user list corresponding to the changed user group before the user group is changed. The second determination module is used to determine the identification information of the changed user according to the first user list and the second user list. The third determination module is used to change the list of user groups to be changed according to the identification information of the changed user group. The change module is used to change the list of user groups to be changed according to the identification information of the changed user group.

[0163] According to an embodiment of the present disclosure, the second determination module includes a first acquisition unit, a second acquisition unit, and a first determination unit. The first acquisition unit is used to acquire the first user identification information from the first user list. The second acquisition unit is used to acquire the second user identification information from the second user list. The first determination unit is used to determine the first user identification information as the identification information of the first changed user and the second user identification information as the identification information of the second changed user when the first user identification information is different from the second user identification information.

[0164] According to an embodiment of the present disclosure, the third determination module includes a second determination unit and a third determination unit. The second determination unit is used to determine the first changed user from the user group database according to the identification information of the first changed user. The third determination unit is used to determine the first user group list to be changed corresponding to the first changed user according to the first changed user.

[0165] According to an embodiment of the present disclosure, the changing module includes an adding unit, which is used to add identification information of the changed user group in the first user group list to be changed, so as to change the first user group list to be changed.

[0166] According to an embodiment of the present disclosure, the third determination module further includes a fourth determination unit and a fifth determination unit. The fourth determination unit is used to determine the second changed user from the user group database according to the identification information of the second changed user. The fifth determination unit is used to determine the second user group list to be changed corresponding to the second changed user according to the second changed user.

[0167] According to an embodiment of the present disclosure, the changing module includes a deleting unit, which is used to delete the identification information of the changed user group in the second user group list to be changed, so as to change the second user group list to be changed.

[0168] It should be noted that the embodiments of the device part of the present disclosure are the same or similar to the embodiments of the method part of the present disclosure, and the present disclosure will not repeat them here.

[0169] According to the modules and units of the embodiments of the present disclosure, any multiple or at least part of the functions of any multiple thereof can be implemented in one module. According to the modules and units of the embodiments of the present disclosure, any one or more can be split into multiple modules for implementation. According to the modules and units of the embodiments of the present disclosure, any one or more can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware of any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, according to the modules and units of the embodiments of the present disclosure, one or more can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0170] For example, any multiple of the first acquisition module 901, the first determination module 902, and the output module 903 can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the first acquisition module 901, the first determination module 902, and the output module 903 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware, and firmware, or by a suitable combination of any of them. Alternatively, at least one of the first acquisition module 901, the first determination module 902 and the output module 903 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be executed.

[0171] Fig.10 A block diagram of an electronic device suitable for implementing an information query method according to an embodiment of the present disclosure is schematically shown. Fig.10 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0172] like Fig.10 As shown, the electronic device 1000 according to an embodiment of the present disclosure includes a processor 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. The processor 1001 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1001 may also include an onboard memory for caching purposes. The processor 1001 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0173] In RAM 1003, various programs and data required for the operation of electronic device 1000 are stored. Processor 1001, ROM 1002 and RAM 1003 are connected to each other via bus 1004. Processor 1001 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1002 and / or RAM 1003. It should be noted that the program can also be stored in one or more memories other than ROM 1002 and RAM 1003. Processor 1001 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0174] According to an embodiment of the present disclosure, the electronic device 1000 may further include an input / output (I / O) interface 1005, which is also connected to the bus 1004. The system 1000 may further include one or more of the following components connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0175] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the processor 1001, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.

[0176] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0177] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.

[0178] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 1002 and / or the RAM 1003 described above and / or one or more memories other than the ROM 1002 and the RAM 1003 .

[0179] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0180] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0181] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. An information query method, comprising: Acquire an information query instruction, wherein the information query instruction includes first identification information of a target user and second identification information of a target user group; Determine, according to the first identification information, a first user group list associated with the target user from a user group database, wherein the user group database includes user group lists corresponding to different users respectively stored in a first preset storage structure; In the case where it is determined that the second identification information exists in the first user group list, outputting a query result for indicating that the target user belongs to the target user group; Acquiring user group change information, wherein the user group change information includes identification information of the changed user group; According to the identification information of the changed user group, a first user list and a second user list are acquired from the user group database, wherein the first user list is a user list corresponding to the changed user group after the user group information is changed, and the second user list is a user list corresponding to the changed user group before the user group is changed; Determining identification information of the user to be changed according to the first user list and the second user list; Determining, in the user group database, a list of user groups to be changed corresponding to the changed user according to the identification information of the changed user; The list of user groups to be changed is changed according to the identification information of the changed user group.

2. The method according to claim 1, before obtaining the information query instruction, the method further comprises: Acquire a user list corresponding to the identification information of the user group from a user group database, wherein the user group database includes user lists corresponding to different user groups respectively stored in a second preset storage structure; Assembling data of a plurality of user lists corresponding to identification information of user groups according to the first preset storage structure to obtain user group lists corresponding to different users respectively; The user group lists corresponding to different users are stored in the user group database.

3. The method according to claim 2, wherein: The first preset storage structure includes: using the user's identification information as a primary key and using the identification information of one or more user groups as a secondary key; The second preset storage structure includes: using identification information of a user group as a primary key and using identification information of one or more users as a secondary key.

4. The method according to claim 1, wherein: The determining, according to the first user list and the second user list, identification information of the changed user includes: Acquire first user identification information from the first user list; Acquire second user identification information from the second user list; When the first user identification information is different from the second user identification information, the first user identification information is determined as identification information of the first changed user, and the second user identification information is determined as identification information of the second changed user.

5. The method according to claim 4, wherein: The determining, from a user group database, a list of user groups to be changed corresponding to the changed user according to the identification information of the changed user includes: Determining the first changed user from the user group database according to the identification information of the first changed user; According to the first changed user, a first to-be-changed user group list corresponding to the first changed user is determined.

6. The method according to claim 5, wherein: The step of changing the list of user groups to be changed according to the identification information of the changed user group includes: The identification information of the changed user group is added to the first user group list to be changed, so as to change the first user group list to be changed.

7. The method according to claim 4, wherein: The determining, from a user group database, a list of user groups to be changed corresponding to the changed user according to the identification information of the changed user includes: determining the second changed user from the user group database according to the identification information of the second changed user; According to the second changed user, a second to-be-changed user group list corresponding to the second changed user is determined.

8. The method according to claim 7, wherein: The step of changing the list of user groups to be changed according to the identification information of the changed user group includes: The identification information of the changed user group is deleted from the second user group list to be changed, so as to change the second user group list to be changed.

9. An information query device, comprising: A first acquisition module, used to acquire an information query instruction, wherein the information query instruction includes first identification information of a target user and second identification information of a target user group; A first determining module, configured to determine, according to the first identification information, a first user group list associated with the target user from a user group database, wherein the user group database includes user group lists corresponding to different users respectively stored in a first preset storage structure; An output module, configured to output a query result indicating that the target user belongs to the target user group when it is determined that the second identification information exists in the first user group list; A third acquisition module is used to acquire user group change information, wherein the user group change information includes identification information of the changed user group; a fourth acquisition module, configured to acquire a first user list and a second user list from the user group database according to the identification information of the changed user group, wherein the first user list is a user list corresponding to the changed user group after the user group information is changed, and the second user list is a user list corresponding to the changed user group before the user group is changed; A second determining module, configured to determine identification information of a user to be changed according to the first user list and the second user list; A third determining module, configured to determine, in the user group database, a list of user groups to be changed corresponding to the changed user according to the identification information of the changed user; The changing module is used to change the list of user groups to be changed according to the identification information of the changed user groups.

10. An electronic device comprising: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

11. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 8.

12. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Method and system for group information synchronization between client and server

    CN103188235A