A method, device, equipment and storage medium for obtaining value attribute value

By pre-calculating and storing the optimal value attribute value in each time period when creating the item value change task, the problems of complex calculation and slow response in the existing technology are solved, the response speed of the item value attribute value query is improved, and the user experience is improved. experience.

CN113762995BActive Publication Date: 2024-10-22BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010514365.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-08
Publication Date
2024-10-22
Estimated Expiration
2040-06-08

AI Technical Summary

Technical Problem

In the existing technology, when user information and product information satisfy multiple promotion activities, calculating the promotional price for each promotion activity is complicated and the response is slow, resulting in long system response time and poor user experience.

Method used

By pre-calculating and storing the optimal value attribute value in each time period when the item value change task is created, when a value attribute value query request is detected, the target value attribute value is directly obtained from the pre-stored value information pool, reducing repeated calculations. , improve response speed.

Benefits of technology

Significantly improves the response speed of item value attribute value query and improves user experience. Especially during concentrated promotions or hot promotions, it reduces system response time and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113762995B_ABST
    Figure CN113762995B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, equipment and storage medium for obtaining value attribute values, the method comprising: in response to a detected value attribute value query request, obtaining a query item identifier and a query user identifier corresponding to the value attribute value query request; obtaining a target value attribute value corresponding to the value attribute value query request from a value information pool according to the query item identifier, the query user identifier and the query time, wherein the value attribute values ​​in the value information pool are pre-generated according to the item value change task; outputting the target value attribute value as response information of the value attribute value query request, calculating the value attribute value in advance and storing it, and obtaining the target value attribute value from the value attribute values ​​pre-stored for the item when the value attribute value query request is detected, thereby accelerating the acquisition speed of the target value attribute value, improving the response speed to the item value attribute value query, and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a method, device, equipment and storage medium for obtaining value attribute values. Background Art

[0002] With the development of the Internet, more and more users purchase items through online shopping platforms. When shopping, users usually click on the items they are interested in on the operation interface of the operation terminal. After the operation terminal detects the viewing operation triggered by the user, it sends the item information and user information to the server. The server uses the user information and item information as input information, searches the system for promotional activities that meet the user information and item information, and calculates the promotional price in real time and returns it to the operation terminal, which displays the received information.

[0003] In the process of realizing the present invention, the inventors found that there are at least the following technical problems in the prior art: in the existing price query, if the user information and product information meet multiple promotional activities, it is necessary to calculate the promotional price of each promotional activity, select the best price and return it to the operation terminal, and the calculation process is complicated and the response is slow; when the promotion is concentrated or the promotion is very popular, the large amount of repeated calculations caused by a large number of visits can easily lead to long system response time and poor user experience. Summary of the invention

[0004] The embodiments of the present invention provide a method, device, equipment and storage medium for obtaining value attribute values, so as to improve the response speed to the query of the value attribute values ​​of items and improve the user experience.

[0005] In a first aspect, an embodiment of the present invention provides a method for obtaining a value attribute value, comprising:

[0006] In response to the detected value attribute value query request, obtaining a query item identifier and a query user identifier corresponding to the value attribute value query request;

[0007] Obtaining a target value attribute value corresponding to the value attribute value query request from the value information pool according to the query item identifier, the query user identifier and the query time, wherein the value attribute value in the value information pool is generated in advance according to the item value change task;

[0008] The target value attribute value is output as the response information of the value attribute value query request.

[0009] In a second aspect, an embodiment of the present invention further provides a device for obtaining a value attribute value, including:

[0010] A query request acquisition module, used to respond to the detected value attribute value query request and acquire the query item identifier and the query user identifier corresponding to the value attribute value query request;

[0011] The target value attribute value module is used to obtain the target value attribute value corresponding to the value attribute value query request from the value information pool according to the query item identifier, the query user identifier and the query time, wherein the value attribute value in the value information pool is generated in advance according to the item value change task;

[0012] The response information output module is used to output the target value attribute value as the response information of the value attribute value query request.

[0013] In a third aspect, an embodiment of the present invention further provides a computer device, the device comprising:

[0014] one or more processors;

[0015] A storage device for storing one or more programs

[0016] When one or more programs are executed by one or more processors, the one or more processors implement the value attribute value acquisition method provided by any embodiment of the present invention.

[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for obtaining value attribute values ​​as provided in any embodiment of the present invention.

[0018] The embodiment of the present invention obtains the query item identifier and the query user identifier corresponding to the value attribute value query request in response to the detected value attribute value query request; obtains the target value attribute value corresponding to the value attribute value query request from the value information pool according to the query item identifier, the query user identifier and the query time, wherein the value attribute value in the value information pool is pre-generated according to the item value change task; outputs the target value attribute value as the response information of the value attribute value query request, calculates and stores the value attribute value in advance when the item value change task is created, and obtains the target value attribute value from the value attribute values ​​pre-stored in the item when the value attribute value query request is detected, thereby accelerating the acquisition speed of the target value attribute value, improving the response speed to the item value attribute value query, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a flow chart of a method for obtaining a value attribute value provided by the first embodiment of the present invention;

[0020] Figure 2 This is a flow chart of a method for obtaining a value attribute value provided by Embodiment 2 of the present invention;

[0021] Figure 3aIt is a flow chart of a method for obtaining a value attribute value provided by Embodiment 3 of the present invention;

[0022] Figure 3b This is a promotion result pool update flow chart provided by the third embodiment of the present invention;

[0023] Figure 3c This is a schematic diagram of a promotion activity hit process provided by the third embodiment of the present invention;

[0024] Figure 4 It is a structural diagram of a device for obtaining a value attribute value provided by a fourth embodiment of the present invention;

[0025] Figure 5 It is a structural diagram of a computer device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0027] Embodiment 1

[0028] Figure 1 1 is a flow chart of a method for obtaining a value attribute value provided by the first embodiment of the present invention. This embodiment is applicable to the case of querying a value attribute value. The method can be executed by a value attribute value obtaining device, which can be implemented in software and / or hardware. For example, the value attribute value obtaining device can be configured in a computer device. Figure 1 As shown, the method includes:

[0029] S110. In response to the detected value attribute value query request, obtain the query item identifier and the query user identifier corresponding to the value attribute value query request.

[0030] In this embodiment, the value attribute value query request may be a request triggered by a user through an operation terminal for querying the value attribute value of an item, wherein the value attribute value may represent a price.

[0031] Taking the online shopping platform as an example, when a user needs to query the information of a certain item, the user selects the item on the operation interface of the operation terminal to trigger the information query operation of the item. The operation terminal generates an information query request according to the item selected by the user, and sends the generated information query request to the online shopping platform server. After receiving the information query request sent by the operation terminal, the online shopping platform server calls the server corresponding to each information to obtain the corresponding information to generate the response information of the information query request. Among them, the information included in the information query request can be information such as item details, item price, and related item recommendations. In other words, the online shopping platform server generates a corresponding value attribute value query request according to the information query request, and sends it to the value attribute value acquisition device. After the value attribute value acquisition device detects the value attribute value acquisition request, it parses the value attribute value acquisition request to obtain the query item identifier and query user identifier corresponding to the value attribute value acquisition request. Among them, the query item identifier is used to represent the query object corresponding to the value attribute value, and the query user identifier is used to represent the user who queries the value attribute value of the item.

[0032] S120. Obtain a target value attribute value corresponding to the value attribute value query request from a value information pool according to the query item identifier, the query user identifier, and the query time.

[0033] In this embodiment, the value attribute value in the value information pool is generated in advance according to the item value change task. In order to improve the acquisition speed of the target value attribute value, the optimal value attribute value of the item in each time period can be calculated in advance according to the item value change task, and stored in the value information pool. When a value attribute value query request is detected, the target value attribute value corresponding to the value attribute value query request is obtained from the value information pool according to the query item identifier, query user identifier and query time corresponding to the value attribute value query request. Among them, the item value change task can be a promotion activity, and the optimal value attribute value can be the lowest price. Generally, the promotion activity will be created in advance before the start time of the promotion activity. Optionally, when the promotion activity is created, the lowest price of each item for each user in each time period can be calculated according to the created promotion activity, and the calculation result can be stored in the value information pool, so that after the promotion task takes effect, the price query response is made according to the information stored in the value information pool.

[0034] It should be noted that due to the large number of users on the online shopping platform, the number of items involved in the item value change task is uncertain, which may lead to the technical problem that the optimal value attribute value of each user and each commodity is large in calculation and slow in calculation, and the value attribute value query speed is slow due to the excessive amount of value information stored in the value information pool. In this embodiment, in order to solve the above technical problems, some users and some items can be screened as optional users and optional items that need to pre-calculate the value attribute value, and the optimal value attribute value of the optional items of the optional users in different time periods can be pre-calculated to reduce the calculation amount and query times of the value information value. Optionally, users whose active values ​​are higher than the set active value threshold can be used as optional users, and items whose item query frequency is higher than the set query category can be used as optional items. Optionally, the item value change task can also be limited, such as when the value change object of the item value change task is set to a single item, the optimal value attribute value of the optional items of the optional users calculated according to the item value change task is stored. Correspondingly, when a value attribute value query request is detected, it can be determined first whether the query user identifier corresponding to the value attribute value query request is the user identifier of an optional user, and whether the query item identifier is the item identifier of an optional item. If the query user identifier is the user identifier of an optional user, and the query item identifier is the item identifier of an optional item, the target value attribute value corresponding to the value attribute value query request can be obtained in the value information pool based on the query user identifier, the query item identifier and the query time. If the target value attribute value corresponding to the query user identifier, the query item identifier and the query time does not exist in the value information pool, the target value attribute value corresponding to the value attribute value query request can be calculated according to the existing value attribute value query method.

[0035] In one embodiment of the present invention, a value information pool includes at least one value information group, each value information group includes at least one index item and the same value attribute value corresponding to the at least one index item, each index item includes a change time period, a change item identifier and a change user identifier; a target value attribute value corresponding to a value attribute value query request is obtained from the value information pool according to the query item identifier, the query user identifier and the query time, including: determining a target value information group hit by the value attribute value query request according to the query item identifier, the query user identifier and the query time and the change time period, the change item identifier and the change user identifier contained in each value information group; and using the value attribute value in the target value information group as the target value attribute value.

[0036] Optionally, in order to reduce the memory occupied by the value information pool, users with the same item value attribute values ​​corresponding to the same change time period and the same change item identifier can be grouped together, that is, if the value attribute values ​​corresponding to the same change time period, the same change item identifier, and different change user identifiers are the same, the change time period, the change item identifier, and the change user identifier are used as index items of the value attribute value, and the corresponding value attribute values ​​are stored only once, and the value information group consisting of the index item and the value attribute value is stored in the value information pool. Correspondingly, when querying the target value attribute value, the change item identifier is matched with the query item identifier, the change user identifier is matched with the query user identifier, and the value information group whose change time period includes the query time is used as the target value information group hit by the value attribute value query request, and the value attribute value in the target value information group is used as the target value attribute value. Among them, the change item identifier and the query item identifier match can be the change item identifier and the query item identifier are the same, and the change user identifier and the query user identifier match can be the change user identifier and the query user identifier are the same.

[0037] On the basis of the above scheme, the target value information group hit by the value attribute value query request is determined according to the query item identifier, query user identifier and query time, as well as the changed time period, changed item identifier and changed user identifier contained in each value information group, including: traversing each value information group according to the priority of each value information group; when traversing to the current value information group, judging whether the current value information group is the target value information group hit by the value attribute value query request according to the query item identifier, query user identifier and query time, as well as the changed time period, changed item identifier and changed user identifier contained in the current value information group, if so, stopping the traversal, otherwise, traversing the next value information group until the target value information group hit by the value attribute value query request is determined; wherein, the priority of the value information group is determined according to the number of hits of the value information group.

[0038] It can be understood that the process of determining the target value information group is a process of traversing the value information groups contained in the value information pool and determining in turn whether each value information group is the target value information group. Optionally, the value information groups in the value information pool can be randomly traversed to determine in turn whether each value information group is the target value information group. The value information groups in the value information pool can also be traversed according to the storage order of the value information groups in the value information pool to determine in turn whether each value information group is the target value information group. A priority can also be set for each value information group, and the value information groups in the value information pool can be traversed according to the priority of each value information group to determine in turn whether each value information group is the target value information group.

[0039] Preferably, the priority of each value information group can be determined according to the number of hits of the value information group, and the value information groups in the value information pool can be traversed according to the priority of each value information group, and each value information group can be judged in turn to see whether it is the target value information group. The traversal order is determined according to the priority of the value information group, so that the value information groups with higher query frequencies are matched first when queries are performed, which reduces the number of matches of the value information groups with higher query frequencies and improves the speed of determining the target value information group. Optionally, a priority calculation rule for the value information group can be set in advance, and the priority of each value information group can be determined according to the pre-set priority calculation rule. In this embodiment, the priority calculation rule is not limited, as long as it can be ensured that the more hits a value information group has, the higher the priority of the value information group.

[0040] S130. Output the target value attribute value as response information of the value attribute value query request.

[0041] In this embodiment, after the target value attribute value is determined, response information is generated according to the target value attribute value, and the response information is output and fed back to the sender of the value attribute value query request.

[0042] The embodiment of the present invention obtains the query item identifier and the query user identifier corresponding to the value attribute value query request in response to the detected value attribute value query request; obtains the target value attribute value corresponding to the value attribute value query request from the value information pool according to the query item identifier, the query user identifier and the query time, wherein the value attribute value in the value information pool is pre-generated according to the item value change task; outputs the target value attribute value as the response information of the value attribute value query request, calculates and stores the value attribute value in advance when the item value change task is created, and directly obtains the target value attribute value from the value attribute values ​​pre-stored in the item when the value attribute value query request is detected, thereby accelerating the determination speed of the target value attribute value, thereby improving the response speed to the item value attribute value query, and improving the user experience.

[0043] Embodiment 2

[0044] Figure 2 1 is a flow chart of a method for obtaining a value attribute value provided by the second embodiment of the present invention. This embodiment adds an operation of updating the value information pool based on the above embodiment. Figure 2 As shown, the method includes:

[0045] S210. In response to the detected value attribute value query request, obtain the query item identifier and the query user identifier corresponding to the value attribute value query request.

[0046] S220. Obtain the target value attribute value corresponding to the value attribute value query request from the value information pool according to the query item identifier, the query user identifier and the query time.

[0047] S230. Output the target value attribute value as response information of the value attribute value query request.

[0048] S240. When it is detected that an item value change task is created, the item value change method information corresponding to the item value change task is obtained, and the value information pool is updated according to the value change method information.

[0049] In this embodiment, the order of updating the value information pool and the order of determining the target value attribute value corresponding to the value attribute value query request are not limited. Optionally, the value information pool can be updated according to the detected item value change task before responding to the detected value attribute value query request, or can be updated according to the detected item value change task during the response to the detected value attribute value query request, or can be updated according to the detected item value change task after responding to the detected value attribute value query request.

[0050] Optionally, the value information pool may be updated by, when the creation of an item value change task is detected, updating the value information pool according to the value change method information corresponding to the item value change task. The value change method information may be a change object, a change rule, etc. Taking an online shopping platform as an example, an item value change task may be a promotion activity, and the value change method information may be a promotion rule, such as promotion items, promotion methods (such as full-reduction methods, discount methods, etc.), and users targeted by the promotion activity.

[0051] In one embodiment of the present invention, the value information pool is updated according to the value change information, including: determining the value change result corresponding to the value change task according to the value change information; and updating the value information pool according to the value change result. Specifically, after detecting the creation of the item value change task, the value attribute value of the value change item of the user to which the item value change task is directed under the currently created item value change task is calculated, the value change result corresponding to the value change task is generated according to the value attribute value, and the value information pool is updated according to the value change result. Optionally, updating the value information pool according to the value change result can be to determine the optimal item value attribute value corresponding to the same time period, the same user, and the same item according to the value change result and the information stored in the value information pool, and store the optimal item value attribute value corresponding to the same time period, the same user, and the same item. For example, assuming that the result of the value change is that the price corresponding to user 1 and item 1 is 139 in the time period T1-T2, and the information in the value information pool is that the price corresponding to user 1 and item 1 is 135 in the time period T3-T2, and T1<T3<T2, then the information in the value information pool is updated to: the price corresponding to user 1 and item 1 in the time period T1-T3 is 139, and the price corresponding to user 1 and item 1 in the time period T3-T2 is 135. When the creation of the item value change task is detected, the optimal item value attribute value of each user and item is calculated and stored, so that when the price is queried, there is no need to calculate the item value attribute value corresponding to each value change task and then judge, which improves the response speed of the query of the item value attribute value.

[0052] In one embodiment of the present invention, the value change method information includes a value change rule, a change time period, and at least one change item identifier; determining the value change result corresponding to the value change task according to the value change method information includes: determining the change user identifier corresponding to the item value change task according to the value change rule, and calculating the change value attribute value of each change item identifier under different change user identifiers; for each change item identifier, constructing at least one value information group according to the change value attribute value, determining at least one index item in each value information group and the same change value attribute value corresponding to the at least one index item, wherein each index item includes a change time period, a change item identifier, and a change user identifier. Taking the item value change task as a promotion activity as an example, the value change rule is a promotion rule, the change time period is a promotion time period, the change item identifier is the item identifier involved in the promotion activity, and the value attribute value is the price. After obtaining the value change method information, the changed user ID (i.e., the user ID of the user to whom the promotion is directed) is determined according to the promotion rules, and the optimal prices of users corresponding to different changed user IDs and items corresponding to different changed item IDs during the promotion period are calculated. Users with the same optimal price are grouped together, and the changed user ID, changed item ID, and promotion period are used as indexes. The optimal price is used as the changed value attribute value corresponding to the index to obtain the value change result. Users with the same optimal value attribute value for the same item are grouped together so that the same optimal value attribute value only occupies one storage space, reducing the memory usage of the value information pool. Among them, the optimal prices of different items for different users during the promotion period can be calculated by determining various combinations of promotional activities during the promotion period for each user and each item, calculating different prices corresponding to different combinations, and using the lowest price as the optimal price for the item for the user during the promotion period.

[0053] Based on the above scheme, the embodiment of the present invention adds an operation of updating the value information pool. When it is detected that an item value change task has been created, the item value change method information corresponding to the item value change task is obtained, and the value information pool is updated according to the value change method information, so that the value attribute value of each user's item is calculated and stored before the item value change task takes effect, thereby reducing the calculation operation of querying the item value attribute value when the item value change task takes effect, thereby improving the response speed to the item value attribute value query and improving the user experience.

[0054] On the basis of the above scheme, after the value information pool is updated according to the value change information, it also includes: monitoring the value attribute values ​​in the updated value information pool, and outputting warning information when the value attribute values ​​are determined to be abnormal. Optionally, when it is necessary to conduct pre-monitoring or real-time monitoring of value change activities, it is only necessary to calculate, analyze and monitor the data in the value information pool, without repeating the pre-calculation of the value information pool of the entire platform, thereby reducing the amount of calculation when monitoring the value attribute values.

[0055] Embodiment 3

[0056] Figure 3a This is a flow chart of a method for obtaining a value attribute value provided by the third embodiment of the present invention. This embodiment provides a preferred embodiment based on the above embodiment. In this embodiment, the value attribute value is specifically a price, and the item value change is specifically a promotion activity. The value information pool is specifically a promotion result pool. Figure 3a As shown, the method includes:

[0057] S310: When a promotion activity is created, the promotion result pool is updated.

[0058] When a promotion is created, the user, region, and time information for the promotion will be created simultaneously. After the promotion is created, the promotion maintenance system will read the promotion result information of each user involved in each promoted product in the promotion result pool, update the promotion result information of the user corresponding to the product according to the latest result after the promotion is created, and rewrite it into the promotion result pool.

[0059] Figure 3b is a promotion result pool update flow chart provided by the third embodiment of the present invention, such as Figure 3b As shown, when creating a new promotion task, it is necessary to calculate the optimal promotion hit under the current conditions for all products and users, group the users with the same promotion hit for each product, and create a new promotion calculation result with effective time t1 and expiration time t2 for the product and user, and determine whether there are any valid promotions outside the optimal promotion and its hit time range [t1, t2]. If there are any valid promotions, filter the optimal promotion for the product and the user, and limit the processing to the optimal promotion time range [t1, t2]. If there are no valid promotions, confirm the promotion results of the current product and user group and add them to the promotion result pool. Optionally, the judgment conditions in the promotion include but are not limited to users, delivery addresses, registration addresses, order time, etc.

[0060] An example of the method for updating the promotion result information is described below. When the restriction conditions for product promotion are only users and time, assume that the promotion result pool contains product K1 and user U1, and the promotion prices under promotion activities C1, C2, and C3 are shown in Table 1. Table 1 shows the promotion prices of product K1 and user U1 under different promotion activities and the corresponding effective time periods of different promotion activities, where J3 > J2 > J1 and T4 > T3 > T2 > T1.

[0061] Table 1

[0062] commodity user Promotions Promotional Price Start time End Time K1 U1 C1 J1 T1 T2 K1 U1 C2 J2 T2 T3 K1 U1 C3 J3 T3 T4

[0063] Assume that a newly created promotion activity C4 is detected, and its effective time period is T5 - T6, where T1 < T5 < T6 < T2 and J4 < J1. Among all the time periods, the optimal price is J4. Therefore, the promotion result update of C4 is calculated preferentially as shown in Table 2.

[0064] Table 2

[0065] commodity user Promotions Promotional Price Start time End Time K1 U1 C4 J4 T5 T6

[0066] Compare the promotion result corresponding to promotion activity C4 with the promotion information in the promotion result pool. During the time period T5 - T6, promotion activity C1 also exists. Then, update the information in the promotion result pool according to the promotion result of C4. Update the promotion activity corresponding to product K1 and user U1 during the time period T5 - T6 to C4, and update the promotion price to T5. The updated promotion result pool is shown in Table 3.

[0067] commodity user Promotions Promotional Price Start time End Time K1 U1 C4 J4 T5 T6 K1 U1 C1 J1 T1 T5 K1 U1 C1 J1 T6 T2 K1 U1 C2 J2 T2 T3 K1 U1 C3 J3 T3 T4

[0068] It can be understood that when modifying a promotion activity, the update method of the promotion result pool is the same as that when creating a promotion activity. It is also necessary to calculate the final promotion results for different conditions of the product and allocate time periods anew, which will not be elaborated here.

[0069] It should be noted that the start and end times of the promotion activity have been pre-calculated by the system and stored in the promotion result pool. When querying the promotion result, it only needs to be judged according to the belonging time period, that is, the start and end situations of the task are distinguished, and there is no need to specifically maintain and process the effective time of the promotion activity.

[0070] S320. When a price query request is detected, obtain the hit promotion price from the promotion activity pool.

[0071] Figure 3c It is a schematic diagram of a promotion activity hit process provided in Embodiment 3 of the present invention. As Figure 3cAs shown, when it is necessary to obtain the price results of the promotion under the current conditions of the product and user, the priority support is determined through query priority judgment, the promotion result pool is queried according to the priority, the promotion results in the effective promotion are fed back, and the query counter is increased. The query priority is adjusted through the query counter feedback.

[0072] Optionally, the priority can be determined based on the count of a counter. If the counter increases by n, the synchronized priority index increases by n*k, where k is the priority feedback ratio. The ratio can be set based on business experience to meet the priority query feedback results of multiple repeated queries.

[0073] S330. Monitor the promotion prices in the promotion result pool.

[0074] When pre-monitoring or real-time monitoring of promotions is required, the results of the promotional prices need to be calculated according to the specified conditions. Only the data in the promotional result pool needs to be calculated, analyzed and monitored, without the need to repeat the pre-calculation of promotional prices for the entire platform. For example, when a merchant mistakenly sets a 10% discount coupon to a 0.9% discount coupon, the calculation results of the goods and users saved in the promotional result pool will add the promotional conditions of other promotions to this part of the promotion. The system can directly perform early warning and monitoring according to the promotional price results in the promotional result pool according to a specific monitoring plan.

[0075] The solution provided by the embodiment of the present invention can be run in parallel with the conventional technical solution in the prior art. The solution provided by the embodiment of the present invention is suitable for promotional activities with many restrictions, high frequency and single commodity category, and can be run in parallel with the conventional technical solution, and the method is adopted to implement specific judgment conditions.

[0076] The embodiment of the present invention provides a promotion price calculation and monitoring method based on commodity objects. According to specific restriction conditions, a commodity promotion hit pool for different effective time intervals of commodities under different conditions is constructed when a promotion is created. The promotion hit pool is constructed with commodities as indexes and different judgment conditions as auxiliary indexes, including the final calculation results and effective time ranges of the promotion. In the promotion hit pool, in addition to the optimal calculation results and time range of the promotion, the optimal calculation results of each split time period are also included. When the current optimal promotion result is invalid, the current new optimal promotion result is directly hit through the time range. When it is necessary to calculate the current commodity promotion price, it is directly queried through the promotion hit pool according to the index conditions, thereby avoiding the need to judge and calculate the superimposed discounts for each query. After the promotion is created, the optimal hit result in the promotion hit pool can be used as the basis for pre-promotion monitoring and real-time promotion monitoring to issue early warnings for abnormal promotions.

[0077] Embodiment 4

[0078] Figure 4 1 is a schematic diagram of a structure of a value attribute value acquisition device provided by the fourth embodiment of the present invention. The value attribute value acquisition device can be implemented in software and / or hardware, for example, the value attribute value acquisition device can be configured in a computer device. Figure 4 As shown, the device includes a query request acquisition module 410, a target value attribute value module 420 and a response information output module 430, wherein:

[0079] A query request acquisition module 410, configured to respond to a detected value attribute value query request and acquire a query item identifier and a query user identifier corresponding to the value attribute value query request;

[0080] The target value attribute value module 420 is used to obtain the target value attribute value corresponding to the value attribute value query request from the value information pool according to the query item identifier, the query user identifier and the query time, wherein the value attribute value in the value information pool is generated in advance according to the item value change task;

[0081] The response information output module 430 is used to output the target value attribute value as the response information of the value attribute value query request.

[0082] In the embodiment of the present invention, a query request acquisition module responds to a detected value attribute value query request to obtain a query item identifier and a query user identifier corresponding to the value attribute value query request; a target value attribute value module obtains a target value attribute value corresponding to the value attribute value query request from a value information pool according to the query item identifier, the query user identifier and the query time, wherein the value attribute value in the value information pool is pre-generated according to the item value change task; a response information output module outputs the target value attribute value as response information of the value attribute value query request, and by pre-calculating and storing the value attribute value when the item value change task is created, the target value attribute value is obtained from the value attribute value pre-stored in the item when the value attribute value query request is detected, thereby accelerating the acquisition speed of the target value attribute value, improving the response speed to the item value attribute value query, and improving the user experience.

[0083] Optionally, based on the above solution, the value information pool includes at least one value information group, each value information group includes at least one index item and the same value attribute value corresponding to the at least one index item, each index item includes a changed time period, a changed item identifier and a changed user identifier; the target value attribute value module 420 includes:

[0084] A target information group determination unit, used to determine a target value information group hit by the value attribute value query request according to the query item identifier, the query user identifier and the query time, as well as the change time period, the change item identifier and the change user identifier contained in each value information group;

[0085] The target attribute value determination unit is used to use the value attribute value in the target value information group as the target value attribute value.

[0086] Optionally, based on the above solution, the target information group determination unit is specifically used to:

[0087] Traverse each value information group according to the priority of each value information group;

[0088] When traversing to the current value information group, judging whether the current value information group is the target value information group hit by the value attribute value query request according to the query item ID, query user ID and query time as well as the change time period, change item ID and change user ID contained in the current value information group, if so, stopping traversal, otherwise, traversing the next value information group until determining the target value information group hit by the value attribute value query request;

[0089] Among them, the priority of the value information group is determined according to the number of hits of the value information group.

[0090] Optionally, based on the above solution, the device further includes an information pool updating module, which is used to:

[0091] When it is detected that an item value change task is created, the item value change method information corresponding to the item value change task is obtained, and the value information pool is updated according to the value change method information.

[0092] Optionally, based on the above solution, the information pool update module is specifically used to:

[0093] Determine the value change result corresponding to the value change task according to the value change information;

[0094] The value information pool is updated according to the value change results.

[0095] Optionally, based on the above solution, the value change information includes a value change rule, a change time period and at least one changed item identifier; the information pool update module is specifically used to:

[0096] Determine the change user ID corresponding to the item value change task according to the value change rule, and calculate the change value attribute value of each change item ID under different change user IDs;

[0097] For each changed item identifier, at least one value information group is constructed according to the changed value attribute value, and at least one index item in each value information group and the same changed value attribute value corresponding to the at least one index item are determined, wherein each index item includes a changed time period, a changed item identifier and a changed user identifier.

[0098] Optionally, based on the above solution, the device further includes an attribute value monitoring module, which is used to:

[0099] After the value information pool is updated according to the value change information, the value attribute values ​​in the updated value information pool are monitored, and warning information is output when it is determined that the value attribute values ​​are abnormal.

[0100] The value attribute value acquisition device provided in the embodiment of the present invention can execute the value attribute value acquisition method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0101] Embodiment 5

[0102] Figure 5 It is a structural diagram of a computer device provided in Embodiment 5 of the present invention. Figure 5 A block diagram of an exemplary computer device 512 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The computer device 512 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0103] like Figure 5 As shown, the computer device 512 is in the form of a general-purpose computing device. The components of the computer device 512 may include, but are not limited to: one or more processors 516, a system memory 528, and a bus 518 that connects various system components (including the system memory 528 and the processor 516).

[0104] Bus 518 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a local bus to processor 516, or a bus structure using any of a variety of bus architectures. These architectures include, by way of example, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0105] The computer device 512 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 512, including volatile and non-volatile media, removable and non-removable media.

[0106] System memory 528 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 530 and / or cache memory 532. Computer device 512 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage device 534 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 518 via one or more data medium interfaces. The memory 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0107] A program / utility 540 having a set (at least one) of program modules 542 may be stored, for example, in the memory 528, such program modules 542 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 542 generally perform the functions and / or methods of the embodiments described herein.

[0108] The computer device 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing device, display 524, etc.), may also communicate with one or more devices that enable a user to interact with the computer device 512, and / or communicate with any device that enables the computer device 512 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via an input / output (I / O) interface 522. In addition, the computer device 512 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) via a network adapter 520. As shown, the network adapter 520 communicates with other modules of the computer device 512 via a bus 518. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 512, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0109] The processor 516 executes various functional applications and data processing by running the program stored in the system memory 528, such as implementing the value attribute value acquisition method provided in the embodiment of the present invention, which includes:

[0110] In response to the detected value attribute value query request, obtaining a query item identifier and a query user identifier corresponding to the value attribute value query request;

[0111] Obtaining a target value attribute value corresponding to the value attribute value query request from the value information pool according to the query item identifier, the query user identifier and the query time, wherein the value attribute value in the value information pool is generated in advance according to the item value change task;

[0112] The target value attribute value is output as the response information of the value attribute value query request.

[0113] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the method for obtaining value attribute values ​​provided in any embodiment of the present invention.

[0114] Embodiment 6

[0115] Embodiment 6 of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for obtaining a value attribute value provided in the embodiment of the present invention is implemented. The method includes:

[0116] In response to the detected value attribute value query request, obtaining a query item identifier and a query user identifier corresponding to the value attribute value query request;

[0117] Obtaining a target value attribute value corresponding to the value attribute value query request from the value information pool according to the query item identifier, the query user identifier and the query time, wherein the value attribute value in the value information pool is generated in advance according to the item value change task;

[0118] The target value attribute value is output as the response information of the value attribute value query request.

[0119] Of course, the computer-readable storage medium provided by an embodiment of the present invention stores a computer program which is not limited to the method operations described above, but can also execute related operations of the value attribute value acquisition method provided by any embodiment of the present invention.

[0120] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0121] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0122] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0123] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0124] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for obtaining a value attribute value, characterized in that: include: In response to the detected value attribute value query request, obtaining a query item identifier and a query user identifier corresponding to the value attribute value query request; Acquire a target value attribute value corresponding to the value attribute value query request from a value information pool according to the query item identifier, the query user identifier and the query time, wherein the value attribute value in the value information pool is generated in advance according to the item value change task; Outputting the target value attribute value as response information of the value attribute value query request; The value information pool includes at least one value information group, each of which includes at least one index item and the same value attribute value corresponding to the at least one index item, and each of the index items includes a changed time period, a changed item identifier, and a changed user identifier; The step of acquiring the target value attribute value corresponding to the value attribute value query request from the value information pool according to the query item identifier, the query user identifier and the query time includes: Determine the target value information group hit by the value attribute value query request according to the query item identifier, the query user identifier and the query time and the changed time period, the changed item identifier and the changed user identifier contained in each value information group; Using the value attribute value in the target value information group as the target value attribute value; The process of determining the value information group includes: grouping users with the same item value attribute value corresponding to the same changed item identifier and the same changed time period to form a value information group; The step of determining the target value information group hit by the value attribute value query request according to the query item identifier, the query user identifier, the query time, and the changed time period, the changed item identifier, and the changed user identifier contained in each value information group includes: Traversing each of the value information groups according to the priority of each of the value information groups; When traversing to the current value information group, judging whether the current value information group is the target value information group hit by the value attribute value query request according to the query item identifier, the query user identifier and the query time as well as the change time period, the change item identifier and the change user identifier contained in the current value information group, if so, stopping traversal, otherwise, traversing the next value information group until determining the target value information group hit by the value attribute value query request; Wherein, the priority of the value information group is determined according to the number of hits of the value information group; The generation process of the value information pool includes: Filter some users and some items as optional users and optional items that need to pre-calculate value attribute values, pre-calculate the optimal value attribute values ​​of the optional items of the optional users in different time periods, and store the optimal value attribute values ​​in the value information pool; wherein the optional users are users whose activity values ​​are higher than a set activity value threshold, and the optional items are items whose query frequency is higher than a set query frequency.

2. The method according to claim 1, characterized in that Also includes: When it is detected that an item value change task is created, the item value change method information corresponding to the item value change task is obtained, and the value information pool is updated according to the value change method information.

3. The method according to claim 2, characterized in that The updating of the value information pool according to the value change mode information includes: Determine the value change result corresponding to the value change task according to the value change method information; The value information pool is updated according to the value change result.

4. The method according to claim 3, characterized in that The value change mode information includes value change rules, change time period and at least one change item identifier; The determining the value change result corresponding to the value change task according to the value change mode information includes: Determine the change user ID corresponding to the item value change task according to the value change rule, and calculate the change value attribute value of each of the change item IDs under different change user IDs; For each of the changed item identifiers, at least one of the value information groups is constructed according to the changed value attribute value, and at least one index item in each of the value information groups and the same changed value attribute value corresponding to the at least one index item are determined, wherein each of the index items includes the changed time period, the changed item identifier and the changed user identifier.

5. The method according to claim 2, characterized in that: After the value information pool is updated according to the value change mode information, the method further includes: The value attribute value in the updated value information pool is monitored, and warning information is output when it is determined that the value attribute value is abnormal.

6. A device for obtaining a value attribute value, characterized in that: include: A query request acquisition module, configured to respond to a detected value attribute value query request and acquire a query item identifier and a query user identifier corresponding to the value attribute value query request; A target value attribute value module, used to obtain a target value attribute value corresponding to the value attribute value query request from a value information pool according to the query item identifier, the query user identifier and the query time, wherein the value attribute value in the value information pool is generated in advance according to the item value change task; A response information output module, used for outputting the target value attribute value as response information of the value attribute value query request; The value information pool includes at least one value information group, each of which includes at least one index item and the same value attribute value corresponding to the at least one index item, and each of the index items includes a changed time period, a changed item identifier, and a changed user identifier; The target value attribute value module includes: a target information group determining unit, configured to determine a target value information group hit by the value attribute value query request according to the query item identifier, the query user identifier and the query time, and the changed time period, the changed item identifier and the changed user identifier contained in each value information group; a target attribute value determination unit, configured to use the value attribute value in the target value information group as the target value attribute value; The process of determining the value information group includes: grouping users with the same item value attribute value corresponding to the same changed item identifier and the same changed time period to form a value information group; The target information group determination unit is specifically used for: Traversing each of the value information groups according to the priority of each of the value information groups; When traversing to the current value information group, judging whether the current value information group is the target value information group hit by the value attribute value query request according to the query item identifier, the query user identifier and the query time as well as the change time period, the change item identifier and the change user identifier contained in the current value information group, if so, stopping traversal, otherwise, traversing the next value information group until determining the target value information group hit by the value attribute value query request; Wherein, the priority of the value information group is determined according to the number of hits of the value information group; The generation process of the value information pool includes: Filter some users and some items as optional users and optional items that need to pre-calculate value attribute values, pre-calculate the optimal value attribute values ​​of the optional items of the optional users in different time periods, and store the optimal value attribute values ​​in the value information pool; wherein the optional users are users whose activity values ​​are higher than a set activity value threshold, and the optional items are items whose query frequency is higher than a set query frequency.

7. A computer device, characterized in that: The device comprises: one or more processors; A storage device 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 value attribute value acquisition method as described in any one of claims 1-5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for obtaining value attribute values ​​as described in any one of claims 1 to 5 is implemented.