Data processing method and device

Through the integrated data processing framework, in the refined operation analysis of e-commerce, the grouping keys and values ​​of traffic data are used to determine the page jump path, which solves the problems of complexity and high cost of order guidance logic determination in the existing technology, and achieves high efficiency. calculation and maintenance.

CN118586986APending Publication Date: 2024-09-03BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410814602.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing technologies In the refined operation analysis of e-commerce, the order guidance logic judgment method has problems such as high reading cost, high developer experience requirements and poor readability of query statements. Moreover, multi-task deployment in stages leads to long links and long online processes. complex.

Method used

Using an integrated data processing framework, the grouping key is calculated by obtaining traffic data, grouping the data, generating grouping values, storing them as key-value pairs, determining the page jump path, and associating it with order data to achieve single-task operation and maintenance and one-time script deployment.

Benefits of technology

It improves the computing efficiency in complex guidance path scenarios, reduces R&D and maintenance costs, improves the scalability and computing efficiency of business scenarios, and ensures the uniformity of data distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586986A
    Figure CN118586986A
Patent Text Reader

Abstract

The invention discloses a data processing method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: acquiring a plurality of pieces of traffic data, respectively calculating a grouping key corresponding to each piece of traffic data, and grouping the plurality of pieces of traffic data based on the grouping key corresponding to each piece of traffic data; for each group, generating a group value corresponding to each piece of flow data according to each piece of flow data in the group, and storing a group key corresponding to the group and the group value corresponding to each piece of flow data into an array corresponding to the group in a key-value pair form; determining a page jump path corresponding to the array according to each grouping value in the array; and associating the page jump path corresponding to the array with the order data. According to the implementation mode, an integrated data processing framework, script one-time deployment and single-task operation and maintenance are adopted, the calculation efficiency of guide logic in a complex guide path scene is improved, and the research and development and maintenance cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data processing method and device. Background Art

[0002] In the context of refined e-commerce operation analysis, the browsing, adding to cart, and ordering operations of users after entering the core display pages such as product details pages and store pages from various fields are the key research paths, so as to determine the order guidance logic through the paths. In related technologies, the order guidance logic of different fields is determined in the following ways: one is to implement it through the calculation method in the data processing framework with the help of query statements, but this will result in high reading costs, high requirements for developer experience, and poor readability of query statements; the other is to use the data processing framework to implement it in stages and multiple tasks, but this method has a long link and multiple scripts and multi-task deployment, and the online process is complicated. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a data processing method and device, which adopts an integrated data processing framework, one-time script deployment, and single-task operation and maintenance, thereby improving the computing efficiency of the guidance logic in complex guidance path scenarios and reducing R&D and maintenance costs.

[0004] To achieve the above object, according to one aspect of an embodiment of the present invention, a data processing method is provided, comprising:

[0005] Acquire multiple pieces of traffic data, calculate the grouping key corresponding to each piece of traffic data, and group the multiple pieces of traffic data based on the grouping key corresponding to each piece of traffic data;

[0006] For each group, a group value corresponding to each piece of traffic data is generated according to each piece of traffic data in the group, and a group key corresponding to the group and a group value corresponding to each piece of traffic data are stored in an array corresponding to the group in the form of a key-value pair;

[0007] Determine a page jump path corresponding to the array according to each group value in the array;

[0008] The page jump path corresponding to the array is associated with the order data.

[0009] Optionally, each piece of traffic data includes a user ID and a number of accesses;

[0010] Calculating the grouping key corresponding to each piece of traffic data respectively, and grouping the plurality of traffic data based on the grouping key corresponding to each piece of traffic data, including:

[0011] For each piece of traffic data, a first hash value corresponding to each piece of traffic data is calculated according to the user identifier, a random coefficient corresponding to the number of accesses is matched according to a preset mapping relationship between the number of accesses and the random system, and a second hash value is calculated according to the first hash value and the random coefficient, and the second hash value is used as a grouping key corresponding to each piece of traffic data;

[0012] Divide the traffic data with the same grouping key into the same group.

[0013] Optionally, each piece of traffic data includes at least one preset field;

[0014] Generating a group value corresponding to each piece of flow data according to each piece of flow data in the group includes:

[0015] For each piece of traffic data in the group, the at least one preset field is converted into a character string respectively, the character strings corresponding to the at least one preset field are concatenated, and the concatenated character strings are used as the group value corresponding to each piece of traffic data.

[0016] Optionally, determining a page jump path corresponding to the array according to each group value in the array includes:

[0017] For each group value in the array, parse the page reporting time, page access sequence and page access time from the group value;

[0018] According to at least one of the page reporting time, page access sequence and page access time corresponding to each grouping value in the array, a page jump path corresponding to the array is determined; wherein each page jump path corresponds to multiple grouping values.

[0019] Optionally, associating the page jump path corresponding to the array with the order data includes:

[0020] For each group value in the array, parse the page type, user ID, item ID and store ID from the group value;

[0021] Determine the page type corresponding to each grouping value according to the page jump path corresponding to the array and the page types corresponding to each grouping value corresponding to the page jump path;

[0022] If the page type of the grouping value is the first type, obtaining first order data having the same user identifier and item identifier as the grouping value, and associating the attribution page type with the first order data;

[0023] If the page type of the grouping value is the second type, second order data having the same user identifier and store identifier as the grouping value is obtained, and the attribution page type is associated with the second order data.

[0024] Optionally, each piece of traffic data includes an object identifier; before respectively calculating the grouping key corresponding to each piece of traffic data, the method further includes:

[0025] Calculate the data volume of the flow data corresponding to each object identifier respectively, and select the target object identifier with a large data volume from each object identifier according to the size of the data volume;

[0026] Generate a split object identifier corresponding to the target object identifier;

[0027] Splitting the multiple pieces of traffic data corresponding to the target object identifier into multiple pieces of traffic data corresponding to the split object identifier, and updating the object identifiers in the multiple pieces of traffic data according to the splitting result;

[0028] The multiple pieces of traffic data before splitting are replaced by the multiple pieces of traffic data after the object identifier is updated.

[0029] Optionally, generating the split object identifier corresponding to the target object identifier includes: randomly generating a plurality of expansion coefficients corresponding to the target object identifier; concatenating the target object identifier with the expansion coefficients to generate the split object identifier corresponding to the target object identifier;

[0030] Splitting the multiple flow data corresponding to the target object identifier into the multiple flow data corresponding to the split object identifier includes: splitting the multiple flow data corresponding to the split object identifier according to the data volume of the multiple flow data corresponding to the target object identifier and the number of the split object identifiers.

[0031] According to another aspect of an embodiment of the present invention, there is provided a data processing device, including:

[0032] A grouping module, which obtains a plurality of flow data, calculates a grouping key corresponding to each flow data, and groups the plurality of flow data based on the grouping key corresponding to each flow data;

[0033] A generating module, for each group, generates a group value corresponding to each piece of traffic data according to each piece of traffic data in the group, and stores the group key corresponding to the group and the group value corresponding to each piece of traffic data in the form of a key-value pair in an array corresponding to the group;

[0034] A determination module, which determines a page jump path corresponding to the array according to each group value in the array;

[0035] The association module associates the page jump path corresponding to the array with the order data.

[0036] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0037] one or more processors;

[0038] a storage device for storing one or more programs,

[0039] When the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method provided by the present invention.

[0040] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the data processing method provided by the present invention is implemented.

[0041] One embodiment of the above invention has the following advantages or beneficial effects: the data processing method of the embodiment of the present invention obtains multiple traffic data, calculates the grouping key corresponding to each traffic data respectively, and then realizes the grouping of multiple traffic data based on the grouping key; for each group, generates the grouping value corresponding to each traffic data according to each traffic data in the group, and stores the grouping key corresponding to the group and the grouping value corresponding to each traffic data in the form of key-value pairs in the array corresponding to the group; determines the page jump path corresponding to the array according to each grouping value in the array; associates the page jump path corresponding to the array with the order data. This method introduces an integrated data processing framework for complex guide paths, realizes single-task operation and maintenance, one-time script deployment, and full-process implementation; by storing the grouping key corresponding to the group and each grouping value in the form of key-value pairs in the array, the determination of the page jump path and the attribution relationship in the array is realized, the scalability of the business scenario is improved, and an analysis method of the guidance logic of the complex guidance path scenario is provided, which improves the calculation efficiency and reduces the R&D and maintenance costs; the grouping of traffic data is realized by using the grouping key, which ensures that the data distribution is more uniform.

[0042] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0044] Figure 1 is a schematic diagram of the main flow of a data processing method according to an embodiment of the present invention;

[0045] Figure 2is a schematic diagram of the main flow of another data processing method according to an embodiment of the present invention;

[0046] Figure 3 is a schematic diagram of the main flow of another data processing method according to an embodiment of the present invention;

[0047] Figure 4 is a flow chart of a data processing method according to an embodiment of the present invention;

[0048] Figure 5 is a schematic diagram of main modules of a data processing device according to an embodiment of the present invention;

[0049] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0050] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0052] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.

[0053] Figure 1 is a schematic diagram of the main flow of a data processing method according to an embodiment of the present invention, such as Figure 1 As shown, the data processing method comprises the following steps:

[0054] Step S101: acquiring multiple pieces of traffic data, respectively calculating the grouping key corresponding to each piece of traffic data, and grouping the multiple pieces of traffic data based on the grouping key corresponding to each piece of traffic data;

[0055] Step S102: for each group, generate a group value corresponding to each piece of traffic data according to each piece of traffic data in the group, and store the group key corresponding to the group and the group value corresponding to each piece of traffic data in the form of a key-value pair in an array corresponding to the group;

[0056] Step S103: determining a page jump path corresponding to the array according to each group value in the array;

[0057] Step S104: Associating the page jump path corresponding to the array with the order data.

[0058] In the embodiment of the present invention, the data processing method can be applied to the analysis of user shopping behavior paths in complex guidance path scenarios in the e-commerce field, and the guidance logic can be determined by analyzing the user shopping behavior path, thereby providing a reference basis for the refined operation of e-commerce. The data processing method can be implemented based on a distributed data processing framework (such as SparkRDD).

[0059] In an embodiment of the present invention, first, multiple pieces of traffic data are obtained, each piece of traffic data may correspond to a page, and each piece of traffic data may be obtained by monitoring the embedded events of the page. The embedded events may include one or more of browsing events, exposure events and click events. Correspondingly, each piece of traffic data may be browsing traffic data, exposure traffic data or click traffic data, wherein the browsing traffic data may include content information displayed on the current page, the exposure traffic data may include content information that the user can see on the current page, and the click traffic data may include content information clicked by the user on the current page.

[0060] In an embodiment of the present invention, after obtaining multiple traffic flows, the grouping key corresponding to each traffic data is calculated respectively. Specifically, each traffic data may include at least one preset field, wherein the preset field includes an identifier of the preset field and a field value corresponding to the preset field identifier. The preset field in each traffic data may be determined based on the buried event of the page, that is, if the buried event indicates to obtain the preset field, the traffic data generated after the buried event is triggered includes the preset field. The preset field may include at least one of a user identifier, a page identifier, an item identifier, and the like.

[0061] For at least one preset field in each piece of traffic data, one or more preset fields may be selected from the at least one preset field to calculate the grouping key corresponding to the piece of traffic data. For example, one of the preset fields, such as a user identifier, may be hashed, and the obtained hash value may be used as the grouping key corresponding to the piece of traffic data, thereby using the grouping key to divide multiple pieces of traffic data to obtain multiple groups. Each group includes pieces of traffic data with the same grouping key.

[0062] In the embodiment of the present invention, each piece of traffic data includes a user ID and a number of accesses, such as Figure 2 As shown, the grouping key corresponding to each piece of traffic data is calculated respectively, and multiple pieces of traffic data are grouped based on the grouping key corresponding to each piece of traffic data, including:

[0063] Step S201: for each piece of traffic data, a first hash value corresponding to each piece of traffic data is calculated according to the user identifier;

[0064] Step S202: According to the preset mapping relationship between the number of visits and the random system, a random coefficient corresponding to the number of visits is matched;

[0065] Step S203: Calculate a second hash value according to the first hash value and the random coefficient, and use the second hash value as a grouping key corresponding to each piece of traffic data;

[0066] Step S204: Divide the traffic data with the same grouping key into the same group.

[0067] Specifically, the multiple preset fields of each piece of traffic data may include a user ID and a number of visits. The user ID may be the account of the user accessing the traffic data, and the number of visits may be the cumulative value of the number of times the user visits the page, that is, if the interval between the time the user visits the page this time and the time the user last visited the page is greater than the preset time threshold, the number of visits is cumulatively increased by 1; or, if the time the user visits the page within one login is greater than the preset time threshold, the number of visits is cumulatively increased by 1, and the time the user visits the page may be the length of time the user stays on the page.

[0068] For each piece of traffic data, a user identifier of the piece of traffic data is hashed to obtain a first hash value; a random coefficient can be generated according to a random function in a data processing framework, and when generating the random coefficient, it can be generated according to each numerical value within a preset numerical range, and the preset numerical range is a numerical range of a preset number of visits. For example, a random coefficient corresponding to each numerical value in 1-20000 is generated, thereby obtaining a random coefficient corresponding to each number of visits, that is, obtaining a mapping relationship between the number of visits and the random coefficient, and thus matching the random coefficient corresponding to the number of visits according to the preset mapping relationship.

[0069] Then, the sum of the first hash value and the random coefficient is calculated, and the sum is hashed to obtain a second hash value, and the second hash value is used as the grouping key of the traffic data, so that multiple traffic data can be grouped by the grouping key, and the traffic data with the same grouping key can be divided into the same group. Each group includes traffic data corresponding to the same grouping key; at the same time, according to the preset number of groups, the execution node corresponding to each group can be obtained, so that each group can be processed by the working node.

[0070] On the basis of hashing the user identification of each flow data, further hashing is performed in combination with the random coefficient, that is, the grouping key of each flow data is obtained through multi-level hashing. By dividing the flow data with the same grouping key into a group, it can ensure that the flow data with the same grouping key are distributed to the same execution node. At the same time, the uniform distribution of flow data on the execution nodes is achieved, and the efficiency of data processing is also improved.

[0071] After grouping multiple traffic data according to the grouping key corresponding to each traffic data, each group and each traffic data in each group can be obtained. For each group, the grouping value corresponding to each traffic data can be generated according to each traffic data in the group, that is, each traffic data can generate a grouping value, and each group can correspond to one or more grouping values. When generating the grouping value corresponding to each traffic data, each traffic data can be converted, and the grouping value corresponding to the traffic data can be obtained according to the converted data, and then the grouping key and grouping value corresponding to each group are stored in the array corresponding to the group in the form of a key-value pair, that is, in the form of KV, wherein each array includes a grouping key and a grouping value of each traffic data in the group, and the array can be a local array pre-created in the data processing framework, such as an ArrayBuffer array. By storing each traffic data of the same grouping key in the same array in the form of a key-value pair, the attribution relationship determination and the page jump path determination can be realized in each array, that is, the attribution tree or attribution logic determination can be determined, and the scalability of the business scenario can be improved.

[0072] In an embodiment of the present invention, each piece of traffic data includes at least one preset field; a grouping value corresponding to each piece of traffic data is generated based on each piece of traffic data in the group, including: for each piece of traffic data in the group, at least one preset field is converted into a character string, and the character string corresponding to at least one preset field is concatenated, and the concatenated character string is used as the grouping value corresponding to each piece of traffic data.

[0073] Specifically, for each piece of traffic data in each group, since each piece of traffic data contains at least one preset field, the at least one preset field can be converted into a string respectively, and the obtained strings can be spliced, wherein the splicing order of each string can be customized; then the spliced ​​string is used as the group value corresponding to the traffic data, and then the group values ​​corresponding to each group are obtained, and each group value can constitute a group value set, and the group key and group value set of each group can be stored in an array in the form of a key-value pair. By converting each piece of traffic data into a spliced ​​string, the spliced ​​string can be used to efficiently determine the attribution relationship, and then determine the page jump path, and converting it into a string format can reduce data storage space.

[0074] Determine the page jump path corresponding to the array according to each group value in the array, including:

[0075] For each group value in the array, parse the page reporting time, page access sequence and page access time from the group value;

[0076] According to at least one of the page reporting time, page access sequence and page access time corresponding to each group value in the array, a page jump path corresponding to the array is determined; wherein each page jump path corresponds to multiple group values.

[0077] Specifically, after determining the group value corresponding to each flow data in the group, the respective group values ​​corresponding to the group are obtained, that is, the array corresponding to the group includes the group key and the respective group values, and each group value corresponds to a concatenated string. By parsing the group value, the respective preset fields can be extracted from the concatenated string. For example, the page reporting time, page access sequence and page access time can be parsed from the group value. The page reporting time can be the time reported by the client to display the page, the page access sequence can be the sequence of pages visited by the user during the visit to the website, and the page access time can be the time displayed on the page. The access sequence of each page corresponding to each group value can be determined by the sequence of the page reporting time, the page access sequence and the page access time, and the page jump path can be determined according to the access sequence of each page. Each page jump path can correspond to multiple group values, that is, each page jump path is composed of multiple pages in sequence.

[0078] When determining the page jump path, the item ID and store ID can also be parsed from the group value, that is, the item ID and store ID corresponding to the page corresponding to the group value; the page jump path can be determined according to the access sequence of each page, and the page jump path can be determined according to the access sequence of each page and the item ID and store ID corresponding to each page. For example, each group value with the same item ID and the same store ID can be obtained, and then the page jump path can be determined according to the access sequence of each page corresponding to each group value.

[0079] In an embodiment of the present invention, associating the page jump path corresponding to the array with the order data includes:

[0080] For each group value in the array, parse the page type, user ID, item ID, and store ID from the group value;

[0081] According to the page jump path corresponding to the array and the page types corresponding to each group value corresponding to the page jump path, determine the belonging page type corresponding to each group value;

[0082] If the page type of the grouping value is the first type, obtaining first order data having the same user identifier and item identifier as the grouping value, and associating the attribution page type with the first order data;

[0083] If the page type of the grouping value is the second type, second order data having the same user identifier and store identifier as the grouping value is obtained, and the belonging page type is associated with the second order data.

[0084] In an embodiment of the present invention, the multiple traffic data obtained may be traffic data obtained within a first preset time, such as multiple traffic data may be daily traffic data. Before associating the page jump path corresponding to the array with the order data, it is also necessary to obtain the order data, which may include order data obtained through various purchase channels, and the order data may be multiple order data obtained within a second preset time, wherein the duration of the second preset time is greater than or equal to the duration of the first preset time, such as multiple order data may be multiple days of order data. The page jump path corresponding to the array is obtained from the traffic data of a single day. When the page jump path corresponding to the data is associated with the order data, it means that the traffic data of a single day is associated with the order data of multiple days. Specifically, the traffic data of a single day can be associated with the order data of each day in multiple days in a multi-link concurrent manner. Since the traffic data of each day is much lower than the order data, this method reduces the data processing volume of a single link. At the same time, by associating the traffic data of a single day with the order data of multiple days thereafter, the construction of a long-term non-steady-state association relationship can be achieved more accurately and effectively.

[0085] In an embodiment of the present invention, when the page jump path corresponding to the array is associated with the order data, for each group value in the array, the page type can be parsed from the group value, and the parsed page type can be one of a content page, a store page, a business details page, and an irrelevant content page. The content page can be a live broadcast room page, a marketing page, a search page, etc. Each group value can correspond to a page type. According to the page jump path corresponding to the array and the page type corresponding to each group value, the belonging page type corresponding to each group value can be determined, wherein the page jump path corresponds to multiple group values, such as the page jump path can be composed of two or three pages. By obtaining the previous jump page or the previous two jump pages of the current page, the belonging page type corresponding to each group value can be determined, wherein the belonging page type is the type of the page to which the page corresponding to the group value belongs, that is, the field entrance. If the page type of the previous jump page or the previous two jump pages of the page of each group value can determine the belonging page type of each group value, the page jump path corresponding to each array and the belonging page type of each group value in the array can be materialized into a database, so that they can be directly obtained from the database when associated with subsequent order data.

[0086] If the page type of the grouping value belongs to the first type, where the first type is the business details page, then the first order data with the same user ID and item ID in the grouping value is obtained to associate the attribution page type with the first order data; if the attribution page type belongs to the second type, such as the store page, then the second order data with the same user ID and store ID in the grouping value is obtained, and the attribution page type and the second order data are associated, thereby obtaining the guide order details of each order data, and the guide order details include the associated attribution page type and page jump path. Therefore, the operation personnel can carry out refined and efficient operations according to the guide order details.

[0087] In the embodiment of the present invention, each piece of traffic data includes an object identifier; Figure 3 As shown, before calculating the grouping key corresponding to each flow data, the following is also included:

[0088] Step S301: Calculate the data volume of the flow data corresponding to each object identifier respectively, and select the target object identifier with a large data volume from each object identifier according to the size of the data volume;

[0089] Step S302: Generate a split object identifier corresponding to the target object identifier;

[0090] Step S303: splitting the multiple pieces of traffic data corresponding to the target object identifier into multiple pieces of traffic data corresponding to the split object identifiers, and updating the object identifiers in the multiple pieces of traffic data according to the splitting result;

[0091] Step S304: replacing the multiple pieces of traffic data before splitting with the multiple pieces of traffic data after the object identifier is updated.

[0092] In an embodiment of the present invention, the object identifier can be customized according to business needs. For example, the object identifier can be an item identifier, or a store identifier, a live broadcast room identifier, etc. Before calculating the grouping key corresponding to each piece of traffic data separately, since each piece of traffic data may need to be associated with other dimension tables (such as a data table containing fields such as item names) to achieve dimensional expansion of the traffic data, during the association process, there may be hot data, that is, the traffic data containing a certain object identifier is large, which may lead to data skew when associated with other dimension tables, affecting the association effect and efficiency. Therefore, before associating with other dimension tables, it is necessary to solve the data skew problem of multiple traffic data.

[0093] Specifically, the data volume of the traffic data corresponding to each object identifier is calculated respectively, and then the object identifiers are sorted in order of data volume from large to small, and the target object identifiers with large data volume are screened out, that is, the target object identifiers whose data volume exceeds the preset data volume threshold are screened out, and the multiple traffic data are split into two parts, one part is the multiple traffic data corresponding to the target object identifier, and the other part is the multiple traffic data corresponding to the object identifier other than the target object identifier.

[0094] In an embodiment of the present invention, when determining the target object identifier, a preset amount of traffic data can be obtained from multiple traffic data by random sampling, and then the target object identifier is determined based on the preset amount of traffic data, that is, the data volume of the traffic data corresponding to each object identifier in the preset amount of traffic data is calculated, and the target object identifier whose data volume exceeds the preset data volume threshold is filtered out from each object identifier according to the data volume size. The target object identifier is the object identifier indicating the hotspot, and the subsequent steps are performed according to the filtered target object identifier.

[0095] The multiple pieces of traffic data corresponding to the target object identifier are further split. Specifically, a split object identifier corresponding to the target object identifier is first generated. The target object identifier can be generated into multiple split object identifiers according to a preset rule. The number of split object identifiers can be set by user, or can be determined according to the data volume of the multiple pieces of traffic data corresponding to the target object identifier and the preset data volume maximum value. The split object identifier can be generated according to the target object identifier and the preset identifier, such as the target object identifier and the preset identifier are concatenated to obtain the split object identifier. The multiple pieces of traffic data corresponding to the target object identifier are split to obtain the multiple pieces of traffic data corresponding to the split object identifier. After the splitting, the object identifiers in the multiple pieces of traffic data are updated using the split object identifier, and the multiple pieces of traffic data before the splitting are replaced with the multiple pieces of traffic data after the object identifier is updated, thereby realizing the update of the multiple pieces of traffic data corresponding to the target object identifier.

[0096] Therefore, the multiple traffic data corresponding to the split object identifier can be used to merge with other dimension tables. When associating with other dimension tables, the multiple data of the target object identifier in other dimension tables are also split into the multiple data corresponding to the split object identifier, and then the two are merged to obtain the first traffic data. The multiple traffic data corresponding to the object identifier other than the target object identifier are merged with other dimension tables to obtain the second traffic data; then the first traffic data and the second traffic data are merged to obtain the updated multiple traffic data. By splitting the multiple traffic data of the target object identifier of the hotspot, the data skew problem when associating with other dimension tables is solved.

[0097] In an embodiment of the present invention, generating a split object identifier corresponding to a target object identifier includes: randomly generating a plurality of expansion coefficients corresponding to the target object identifier; and concatenating the target object identifier with the expansion coefficients to generate a split object identifier corresponding to the target object identifier. Specifically, the plurality of expansion coefficients representing the target object can be randomly generated according to a random function in a data processing framework.

[0098] Splitting the multiple flow data corresponding to the target object identifier into the multiple flow data corresponding to the split object identifier includes: splitting the multiple flow data corresponding to the split object identifier according to the data volume of the multiple flow data corresponding to the target object identifier and the number of split object identifiers.

[0099] Specifically, when generating a split identifier corresponding to a target object identifier, multiple expansion coefficients of the target object identifier can be randomly generated according to a random function. The number of expansion coefficients can be customized or determined based on the data volume of the traffic data corresponding to the target object identifier and a preset data volume. For example, the maximum preset data volume of each object identifier is 100,000, and the data volume of the traffic data corresponding to the target object identifier is 50,000, then the expansion coefficient can be 3; after generating multiple expansion coefficients, the target object identifier is concatenated with the expansion coefficient to obtain a split object identifier. For example, the expansion coefficient can be expressed in numbers, such as the three generated expansion coefficients can be 0, 1, and 2, respectively. If the target object identifier is A, then the split object identifiers can be A-0, A-1, and A-2, respectively. Then the multiple traffic data corresponding to the target object identifier are split according to the number of split object identifiers to obtain multiple traffic data corresponding to the split object identifier. That is, if the target object identifier is A and the corresponding traffic data is 100,000, it can be split into 3 split object identifiers A-0, A-1 and A-2, and the corresponding traffic data are 20,000, 30,000 and 50,000 respectively.

[0100] Figure 4The figure is a flow chart of a data processing method according to an embodiment of the present invention. The data processing method is implemented based on a distributed data processing framework, and multiple traffic data are obtained. Then, a data tilt solver is used to perform data tilt solving processing on the multiple traffic data, so as to associate them with other dimension tables and obtain multiple updated traffic data. Then, for the multiple updated traffic data, a grouper is used to group the multiple traffic data. Specifically, the grouping key corresponding to each traffic data is calculated, and the multiple traffic data are grouped using the grouping key, and the traffic data with the same grouping key are divided into the same group. For each traffic data in each group, each preset field of each traffic data is converted into a string, and a spliced ​​string is obtained according to the strings of each preset field. The spliced ​​string is used as the grouping value of each traffic data, and the grouping key and grouping value of each group are stored in a local array in the form of a key-value pair. The number of execution nodes is determined according to the mapPartions operator in the data processing framework, and the corresponding arrays on each execution node are determined. For each array, the execution node determines the page jump path corresponding to the execution array and the belonging page type corresponding to the grouping value according to the timeline, and the execution result is stored in the database for subsequent association with order data.

[0101] The data processing method of the embodiment of the present invention obtains multiple traffic data, calculates the grouping key corresponding to each traffic data, and then implements grouping of the multiple traffic data based on the grouping key; for each group, generates a grouping value corresponding to each traffic data according to each traffic data in the group, stores the grouping key corresponding to the group and the grouping value corresponding to each traffic data in the form of a key-value pair in an array corresponding to the group; determines the page jump path corresponding to the array according to each group value in the array; and associates the page jump path corresponding to the array with the order data. This method introduces an integrated data processing framework for complex guidance paths, realizes single-task operation and maintenance, one-time script deployment, and full-process implementation; by storing the grouping key and each grouping value corresponding to the group in an array in the form of key-value pairs, the page jump path and the attribution relationship can be determined in the array, which improves the scalability of business scenarios, provides an analysis method for the guidance logic of complex guidance path scenarios, improves computing efficiency, and reduces R&D and maintenance costs; by solving the data tilt problem for hot spot data, the fragmentation and redundant storage of hot spot collection are avoided; the grouping key of each flow data is obtained by combining random coefficients with multi-level hash processing, and the flow data is grouped using the grouping key, ensuring a more uniform data distribution; the single-day flow data is associated with the multi-day order data to achieve long-term non-steady-state guidance and multi-concurrent execution, reducing the data processing volume of a single link and improving computing efficiency.

[0102] According to another aspect of the embodiment of the present invention, Figure 5As shown, a data processing device 500 is provided, comprising:

[0103] A grouping module 501 obtains multiple pieces of traffic data, calculates the grouping key corresponding to each piece of traffic data, and groups the multiple pieces of traffic data based on the grouping key corresponding to each piece of traffic data;

[0104] Generating module 502, for each group, generates a group value corresponding to each flow data according to each flow data in the group, and stores the group key corresponding to the group and the group value corresponding to each flow data in the form of a key-value pair in an array corresponding to the group;

[0105] Determining module 503, determining a page jump path corresponding to the array according to each group value in the array;

[0106] The association module 504 associates the page jump path corresponding to the array with the order data.

[0107] In an embodiment of the present invention, each piece of traffic data includes a user identifier and a number of accesses; the grouping module 501 is further used to: for each piece of traffic data, calculate a first hash value corresponding to each piece of traffic data according to the user identifier, match a random coefficient corresponding to the number of accesses according to a preset mapping relationship between the number of accesses and the random system, and calculate a second hash value according to the first hash value and the random coefficient, and use the second hash value as the grouping key corresponding to each piece of traffic data; divide the traffic data with the same grouping key into the same group.

[0108] In an embodiment of the present invention, each piece of traffic data includes at least one preset field; the generation module 502 is further used to: for each piece of traffic data in the group, convert at least one preset field into a string, concatenate the string corresponding to at least one preset field, and use the concatenated string as the group value corresponding to each piece of traffic data.

[0109] In an embodiment of the present invention, the determination module 503 is further used to: for each grouping value in the array, parse the page reporting time, page access order and page access time from the grouping value; determine the page jump path corresponding to the array based on at least one of the page reporting time, page access order and page access time corresponding to each grouping value in the array; wherein each page jump path corresponds to multiple grouping values.

[0110] In the embodiment of the present invention, the association module 504 is further used to: for each group value in the array, parse the page type, user identifier, item identifier and store identifier from the group value;

[0111] According to the page jump path corresponding to the array and the page types corresponding to each group value corresponding to the page jump path, determine the belonging page type corresponding to each group value;

[0112] If the page type of the grouping value is the first type, obtaining first order data having the same user identifier and item identifier as the grouping value, and associating the attribution page type with the first order data;

[0113] If the page type of the grouping value is the second type, second order data having the same user identifier and store identifier as the grouping value is obtained, and the belonging page type is associated with the second order data.

[0114] In an embodiment of the present invention, each piece of traffic data includes an object identifier; the device further includes a data tilt solution module, which is used to: before respectively calculating the grouping key corresponding to each piece of traffic data,

[0115] Calculate the data volume of the flow data corresponding to each object identifier respectively, and select the target object identifier with a large data volume from each object identifier according to the size of the data volume;

[0116] Generate a split object identifier corresponding to the target object identifier;

[0117] Splitting the multiple pieces of traffic data corresponding to the target object identifier into multiple pieces of traffic data corresponding to the split object identifier, and updating the object identifiers in the multiple pieces of traffic data according to the split result;

[0118] The multiple pieces of traffic data before splitting are replaced by the multiple pieces of traffic data after the object identifier is updated.

[0119] In the embodiment of the present invention, the data skew solution module is further used to: randomly generate a plurality of expansion coefficients corresponding to the target object identifier; concatenate the target object identifier with the expansion coefficient to generate a split object identifier corresponding to the target object identifier;

[0120] The data skew solution module is further used to: split the multiple flow data corresponding to the split object identifier according to the data volume of the multiple flow data corresponding to the target object identifier and the number of split object identifiers, to obtain the multiple flow data corresponding to the split object identifier.

[0121] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device 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 implement the data processing method provided by the present invention.

[0122] According to another aspect of an embodiment of the present invention, a computer readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the data processing method provided by the present invention is implemented.

[0123] Figure 6An exemplary system architecture 600 is shown to which the data processing method or data processing device according to the embodiment of the present invention can be applied.

[0124] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0125] Users can use terminal devices 601, 602, and 603 to interact with server 605 through network 604 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 601, 602, and 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0126] The terminal devices 601 , 602 , and 603 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, etc.

[0127] Server 605 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by users using terminal devices 601, 602, and 603 (for example only). The backend management server may obtain multiple pieces of traffic data, respectively calculate the grouping key corresponding to each piece of traffic data, and group the multiple pieces of traffic data based on the grouping key corresponding to each piece of traffic data; for each group, generate a grouping value corresponding to the group according to each piece of traffic data in the group, and store the grouping key and grouping value corresponding to the group in the form of a key-value pair in an array corresponding to the group; wherein the grouping value includes page tag information corresponding to each piece of traffic data in the group; determine the page jump path corresponding to each piece of traffic data in the group according to the grouping value in the array; associate the page jump path corresponding to the group with the order data, and feed back the association result to the terminal device.

[0128] It should be noted that the data processing method provided in the embodiment of the present invention is generally executed by the server 605 , and accordingly, the data processing device is generally arranged in the server 605 .

[0129] It should be understood that Figure 6 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 implementation requirements.

[0130] Reference below Figure 7, which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal 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 invention.

[0131] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0132] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0133] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes 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 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0134] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may 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 of computer-readable storage media may include, but are not limited to: 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 the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal 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 computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0135] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. 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.

[0136] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a grouping module, a generation module, a determination module, and an association module. The names of these modules do not constitute a limitation on the modules themselves in some cases. For example, the grouping module may also be described as "a module for obtaining multiple traffic data, respectively calculating the grouping key corresponding to each traffic data, and grouping the multiple traffic data based on the grouping key corresponding to each traffic data".

[0137] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: obtaining multiple traffic data, respectively calculating the grouping key corresponding to each traffic data, and grouping the multiple traffic data based on the grouping key corresponding to each traffic data; for each group, respectively generating a grouping value corresponding to each traffic data according to each traffic data in the group, storing the grouping key corresponding to the group and the grouping value corresponding to each traffic data in the form of a key-value pair in the array corresponding to the group; determining the page jump path corresponding to the array according to each grouping value in the array; and associating the page jump path corresponding to the array with the order data.

[0138] According to the technical solution of an embodiment of the present invention, a data processing method of an embodiment of the present invention obtains multiple traffic data, calculates the grouping key corresponding to each traffic data respectively, and then implements grouping of the multiple traffic data based on the grouping key; for each group, generates a grouping value corresponding to each traffic data according to each traffic data in the group, stores the grouping key corresponding to the group and the grouping value corresponding to each traffic data in the form of a key-value pair in an array corresponding to the group; determines the page jump path corresponding to the array according to each group value in the array; and associates the page jump path corresponding to the array with the order data. This data processing method introduces an integrated data processing framework for complex guidance path scenarios, realizes single-task operation and maintenance, one-time script deployment, and full-process implementation; by storing the grouping key and each grouping value corresponding to the group in an array in the form of key-value pairs, it realizes the determination of page jump path and attribution relationship in the array, improves the scalability of business scenarios, provides an analysis method for guidance logic in complex guidance path scenarios, improves computing efficiency, and reduces R&D and maintenance costs; by solving the data tilt problem for hot spot data, it avoids the fragmentation and redundant storage of hot spot collection; by combining random coefficients with multi-level hash processing to obtain the grouping key of each flow data, and using the grouping key to group the flow data, it ensures a more uniform data distribution; by associating single-day flow data with multi-day order data, it realizes the non-steady state of long-term guidance, and through multi-concurrent execution, it reduces the data processing volume of a single link and improves computing efficiency.

[0139] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A data processing method, characterized in that: include: Acquire multiple pieces of traffic data, calculate the grouping key corresponding to each piece of traffic data, and group the multiple pieces of traffic data based on the grouping key corresponding to each piece of traffic data; For each group, a group value corresponding to each piece of traffic data is generated according to each piece of traffic data in the group, and a group key corresponding to the group and a group value corresponding to each piece of traffic data are stored in an array corresponding to the group in the form of a key-value pair; Determine a page jump path corresponding to the array according to each group value in the array; The page jump path corresponding to the array is associated with the order data.

2. The method according to claim 1, characterized in that Each piece of traffic data includes user ID and access times; Calculating the grouping key corresponding to each piece of traffic data respectively, and grouping the plurality of traffic data based on the grouping key corresponding to each piece of traffic data, including: For each piece of traffic data, a first hash value corresponding to each piece of traffic data is calculated according to the user identifier, a random coefficient corresponding to the number of accesses is matched according to a preset mapping relationship between the number of accesses and the random system, and a second hash value is calculated according to the first hash value and the random coefficient, and the second hash value is used as a grouping key corresponding to each piece of traffic data; Divide the traffic data with the same grouping key into the same group.

3. The method according to claim 1, characterized in that Each piece of traffic data includes at least one preset field; Generating a group value corresponding to each piece of flow data according to each piece of flow data in the group includes: For each piece of traffic data in the group, the at least one preset field is converted into a character string respectively, the character strings corresponding to the at least one preset field are concatenated, and the concatenated character strings are used as the group value corresponding to each piece of traffic data.

4. The method according to claim 3, characterized in that Determining a page jump path corresponding to the array according to each group value in the array includes: For each group value in the array, parse the page reporting time, page access sequence and page access time from the group value; According to at least one of the page reporting time, page access sequence and page access time corresponding to each grouping value in the array, a page jump path corresponding to the array is determined; wherein each page jump path corresponds to multiple grouping values.

5. The method according to claim 4, characterized in that Associating the page jump path corresponding to the array with the order data, including: For each group value in the array, parse the page type, user ID, item ID and store ID from the group value; Determine the page type corresponding to each grouping value according to the page jump path corresponding to the array and the page types corresponding to each grouping value corresponding to the page jump path; If the page type of the grouping value is the first type, obtaining first order data having the same user identifier and item identifier as the grouping value, and associating the attribution page type with the first order data; If the page type of the grouping value is the second type, second order data having the same user identifier and store identifier as the grouping value is obtained, and the attribution page type is associated with the second order data.

6. The method according to claim 1, characterized in that Each piece of traffic data includes an object identifier; before calculating the grouping key corresponding to each piece of traffic data, it also includes: Calculate the data volume of the flow data corresponding to each object identifier respectively, and select the target object identifier with a large data volume from each object identifier according to the size of the data volume; Generate a split object identifier corresponding to the target object identifier; Splitting the multiple pieces of traffic data corresponding to the target object identifier into multiple pieces of traffic data corresponding to the split object identifier, and updating the object identifiers in the multiple pieces of traffic data according to the splitting result; The multiple pieces of traffic data before splitting are replaced by the multiple pieces of traffic data after the object identifier is updated.

7. The method according to claim 6, characterized in that Generating a split object identifier corresponding to the target object identifier, including: randomly generating a plurality of expansion coefficients corresponding to the target object identifier; splicing the target object identifier with the expansion coefficients to generate a split object identifier corresponding to the target object identifier; Splitting the multiple flow data corresponding to the target object identifier into the multiple flow data corresponding to the split object identifier includes: splitting the multiple flow data corresponding to the split object identifier according to the data volume of the multiple flow data corresponding to the target object identifier and the number of the split object identifiers.

8. A data processing device, characterized in that: include: A grouping module, which obtains a plurality of flow data, calculates a grouping key corresponding to each flow data, and groups the plurality of flow data based on the grouping key corresponding to each flow data; A generating module, for each group, generates a group value corresponding to each piece of traffic data according to each piece of traffic data in the group, and stores the group key corresponding to the group and the group value corresponding to each piece of traffic data in the form of a key-value pair in an array corresponding to the group; A determination module, which determines a page jump path corresponding to the array according to each group value in the array; The association module associates the page jump path corresponding to the array with the order data.

9. An electronic device, characterized in that: include: 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 method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.