Label data processing method and device, computer equipment, readable storage medium and program product
By detecting and storing the changed and unchanged label data associated with the target device identification, the media data push platform can be accurately delivered, solving the problem of low resource utilization and improving the conversion rate and platform efficiency.
Patent Information
- Application Number
- CN202411042986.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-29
AI Technical Summary
There is a problem of low resource utilization in existing media data push platforms. This is mainly because it is difficult for merchants to evaluate the recommendation effect and the difference in user interests, resulting in a low delivery success rate.
By detecting the changed and unchanged tag data associated with the target device identification, storing it in the RTA data table, and using the RTA data table for media data delivery, accurate delivery of user accounts is achieved, and the conversion rate and resource utilization rate are improved.
It improves the resource utilization of the media data push platform, improves conversion rate through precise delivery, reduces network bandwidth usage and request time, and increases the number of requests processed per second.
Smart Images

Figure CN118864013A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a tag data processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] With the rapid development of the Internet media industry, media data (such as advertisements) push technology has been applied to various scenarios. For example, in product promotion scenarios, media data about products is pushed on web pages, search engines, browsers or other media platforms to promote products.
[0003] In the current media data push platform, there is inevitably information blockage between data pushers such as merchants and data recipients. On the one hand, after the merchant pushes or releases the media data, it is not known whether anyone likes it, how many people like it, and who likes it, making it difficult to evaluate the effect of the recommended media data, so the recommendation accuracy is not high when the media data is pushed based on task experience alone. On the other hand, due to the differences in the placement of the push terminals, the media data recipients have very different concerns and interests due to differences in gender, age, and group. They often find that the media data does not contain the information they want after watching it, resulting in a low delivery success rate and affecting the resource utilization of the media data push platform.
[0004] Therefore, there is a problem in the related art that the resource utilization rate of the media data push platform is low. Summary of the invention
[0005] Based on this, it is necessary to provide a tag data processing method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve resource utilization of a media data push platform in response to the above technical problems.
[0006] In a first aspect, the present application provides a tag data processing method, comprising:
[0007] Detecting changed tag data associated with a target device identifier; the changed tag data is tag data corresponding to at least one tag after a tag value has changed; the target device identifier is a device identifier corresponding to a device used by a user account that has accessed a media platform;
[0008] Acquire unchanged tag data associated with the target device identifier; the unchanged tag data is tag data corresponding to at least one tag whose tag value has not changed;
[0009] The changed label data and unchanged label data corresponding to the target device identifier are stored in the RTA data table of the media data provider; the RTA data table is used to deliver media data to the user account; the RTA data table stores multiple key-value pairs; the key in the key-value pair includes the corresponding device identifier, and the value in the key-value pair includes the corresponding label record with a preset data structure; the label record includes at least two different label values.
[0010] In one embodiment, the tag includes an offline tag and a real-time tag; and the detecting of the changed tag data associated with the target device identifier includes:
[0011] When detecting that at least one of the changed offline tag data and the changed real-time tag data associated with the target device identifier exists, obtaining the changed tag data associated with the target device identifier according to the at least one of the changed offline tag data and the changed real-time tag data associated with the target device identifier;
[0012] The changed offline tag data is the tag data corresponding to at least one of the offline tags after the tag value is changed; the changed real-time tag data is the tag data corresponding to at least one of the real-time tags after the tag value is changed; the data update frequency corresponding to the real-time tag is higher than the data update frequency corresponding to the offline tag.
[0013] In one embodiment, obtaining the unchanged tag data associated with the target device identification includes:
[0014] Acquire a full label data table; the full label data table includes label data corresponding to the target device identifier and each label before the update time corresponding to the changed label data;
[0015] The tag data corresponding to at least one tag whose tag value associated with the target device identifier has not changed is queried in the full tag data table to obtain the unchanged tag data associated with the target device identifier.
[0016] In one embodiment, the method further comprises:
[0017] According to the changed label data associated with the target device identifier, the label data corresponding to the label whose label value associated with the target device identifier in the full label data table is changed is updated to obtain an updated full label data table.
[0018] In one embodiment, storing the changed label data and unchanged label data corresponding to the target device identifier in an RTA data table of a media data provider includes:
[0019] According to the preset data structure, the changed label data and the unchanged label data corresponding to the target device identifier are combined to obtain a label record corresponding to the target device identifier;
[0020] The tag record corresponding to the target device identifier is stored in the RTA data table of the media data provider.
[0021] In one embodiment, storing the tag record corresponding to the target device identifier in the RTA data table of the media data provider includes:
[0022] Using the target device identifier as a key and the tag record corresponding to the target device identifier as a value, to obtain a key-value pair to be stored;
[0023] The key-value pairs to be stored are stored in the RTA data table of the media data provider.
[0024] In a second aspect, the present application further provides a label data processing device, comprising:
[0025] A detection module, configured to detect changed tag data associated with a target device identifier; the changed tag data being tag data corresponding to at least one tag after a tag value has been changed; the target device identifier being a device identifier corresponding to a device used by a user account that has accessed a media platform;
[0026] An acquisition module, configured to acquire unchanged tag data associated with the target device identifier; the unchanged tag data is tag data corresponding to at least one tag whose tag value has not changed;
[0027] A storage module is used to store the changed label data and unchanged label data corresponding to the target device identifier in the RTA data table of the media data provider; the RTA data table is used to deliver media data to the user account; the RTA data table stores multiple key-value pairs; the key in the key-value pair includes the corresponding device identifier, and the value in the key-value pair includes the corresponding label record with a preset data structure; the label record includes at least two different label values.
[0028] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above method are implemented.
[0029] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0030] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0031] The above-mentioned tag data processing method, device, computer equipment, computer-readable storage medium and computer program product detect the changed tag data associated with the target device identifier; the changed tag data is the tag data corresponding to at least one tag after the tag value is changed; the target device identifier is the device identifier corresponding to the device used by the user account that has accessed the media platform; obtain the unchanged tag data associated with the target device identifier; the unchanged tag data is the tag data corresponding to at least one tag whose tag value has not changed; store the changed tag data and the unchanged tag data corresponding to the target device identifier in the RTA data table of the media data provider; the RTA data table is used to deliver media data to the user account; the RTA data table stores multiple key-value pairs; the key in the key-value pair includes the corresponding device identifier, and the value in the key-value pair includes the corresponding tag record with a preset data structure; the tag record includes at least two different tag values.
[0032] In this way, when the changed label data associated with the target device identifier is detected, the unchanged label data associated with the target device identifier is obtained, and through the changed label data associated with the target device identifier and the associated unchanged label data, a complete label data set corresponding to the target device identifier can be obtained to be stored in the RTA data table of the media data provider; thereby, in the process of using the RTA data table to deliver media data to user accounts, media data that meets the user characteristics can be more accurately delivered to user accounts based on the updated complete label data set corresponding to the user account, thereby effectively improving the conversion rate of media data delivery, so as to further improve the resource utilization of the media data push platform when delivering media data.
[0033] In addition, the key in the key-value pair stored in the RTA data table includes a corresponding device identifier, and the value in the key-value pair includes a corresponding label record including at least two different label values, so that after receiving a media data traffic request, the label record including at least two different label values corresponding to the user account can be queried from the RTA data table according to the device identifier corresponding to the user account, thereby realizing that multiple corresponding label values can be obtained through a single media data traffic request. Compared with the technical solution in the related art that requires multiple label values to be searched due to the storage format of one label corresponding to one key-value pair, the number of data reads can be effectively reduced, so that the target response message returned by a single media data traffic request is smaller, the network bandwidth occupancy is reduced, thereby shortening the request time, and increasing the number of requests processed per second, thereby effectively improving the resource utilization of the media data push platform when delivering media data. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 An application environment diagram of a tag data processing method in an embodiment;
[0036] Figure 2 A schematic diagram of a process of writing tag data into an RTA data table in one embodiment;
[0037] Figure 3 A schematic diagram of a label data cleaning process in one embodiment;
[0038] Figure 4 A schematic diagram of a process of algorithm label parsing and transformation in one embodiment;
[0039] Figure 5 is a flowchart of a tag data processing method in another embodiment;
[0040] Figure 6 is a structural block diagram of a label data processing device in one embodiment;
[0041] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0044] In one embodiment, Figure 1 As shown, a tag data processing method is provided. This embodiment takes the method applied to a server as an example for illustration. It can be understood that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0045] Step S110, detecting changed tag data associated with the target device identifier; the changed tag data is tag data corresponding to at least one tag after the tag value has been changed.
[0046] The target device identifier is a device identifier corresponding to a device used by a user account that has accessed the media platform.
[0047] Among them, the device identifier can be used to identify the terminal device where the user account is located.
[0048] The tag may be a preset tag for describing the characteristics of the user account. For example, the account characteristic description tag may include at least one of the tags such as business identification, activation date, login time, black industry identification, abnormal channel, etc.
[0049] The tag data may include a corresponding tag and a corresponding tag value.
[0050] Among them, the media platform can refer to a server that provides cross-media, cross-platform, and cross-terminal media data delivery services to media data providers.
[0051] The media data provider refers to the party that needs to deliver media data.
[0052] In actual applications, media data may be advertisements; a media platform may be named an advertising platform; and a media data provider may be named an advertiser.
[0053] In a specific implementation, the server may obtain the device identifier corresponding to the device used by the user account that has accessed the media platform as the target device identifier. In addition, the server may detect whether there is changed tag data associated with the target device identifier, that is, detect whether there is tag data corresponding to at least one tag after the tag value associated with the target device identifier has changed.
[0054] In actual applications, for each preset tag, the server can obtain tag data corresponding to all tags after the tag value associated with the target device identifier is changed.
[0055] Furthermore, the changed label data can be recorded in the incremental label data table, and the incremental label data table can be updated according to the preset update frequency. In this way, the changed label data associated with the target device identifier obtained by the server can be the label data corresponding to each label after the label value associated with the target device identifier has changed within the time interval between the current update and the last update of the incremental label data table. For example, the preset update frequency can be days. If the target device identifier A corresponds to a label with a label value change on the 20th, then the incremental label data table statistically generated on the 21st contains the changed label data associated with the target device identifier A on the 20th, and the changed label data associated with the target device identifier A on the 20th includes the label with a label value change and the corresponding changed label value.
[0056] Step S120, obtaining unchanged tag data associated with the target device identification.
[0057] The unchanged label data refers to label data corresponding to at least one label whose label value has not changed.
[0058] In a specific implementation, when detecting the changed tag data associated with the target device identification, the server can obtain the unchanged tag data associated with the target device identification, that is, the server can obtain the tag data corresponding to at least one tag whose tag value associated with the target device identification has not changed.
[0059] Step S130: storing the changed label data and unchanged label data corresponding to the target device identifier in the RTA data table of the media data provider.
[0060] Among them, the RTA (Realtime API, Real-Time Application Programming Interface, used to meet the real-time personalized delivery needs of service providers) data table is used to deliver media data to user accounts.
[0061] The RTA data table stores a plurality of key-value pairs; the key in the key-value pair includes a corresponding device identifier, the value in the key-value pair includes a corresponding tag record with a preset data structure; the tag record includes at least two different tag values.
[0062] The RTA data table may be a data table stored in a database corresponding to the media data provider.
[0063] In actual applications, the database corresponding to the media data provider may be a Redis (Remote Dictionary Server, remote dictionary service) database.
[0064] In a specific implementation, the server can store the changed label data and unchanged label data corresponding to the target device identifier in the RTA data table of the media data provider. The RTA data table is used to deliver media data to the user account, and the RTA data table stores multiple key-value pairs, the key in each key-value pair includes the corresponding device identifier, and the value in each key-value pair includes the corresponding label record with a preset data structure; wherein the label record includes at least two different label values.
[0065] In actual applications, the label record corresponding to the target device identification in the RTA data table may include label values in the changed label data and unchanged label data corresponding to the target device identification.
[0066] In the above-mentioned tag data processing method, the changed tag data associated with the target device identifier is detected; the changed tag data is the tag data corresponding to at least one tag after the tag value is changed; the target device identifier is the device identifier corresponding to the device used by the user account that has accessed the media platform; the unchanged tag data associated with the target device identifier is obtained; the unchanged tag data is the tag data corresponding to at least one tag whose tag value has not changed; the changed tag data and the unchanged tag data corresponding to the target device identifier are stored in the RTA data table of the media data provider; the RTA data table is used to deliver media data to the user account; the RTA data table stores multiple key-value pairs; the key in the key-value pair includes the corresponding device identifier, and the value in the key-value pair includes the corresponding tag record with a preset data structure; the tag record includes at least two different tag values.
[0067] In this way, when the changed label data associated with the target device identifier is detected, the unchanged label data associated with the target device identifier is obtained, and through the changed label data associated with the target device identifier and the associated unchanged label data, a complete label data set corresponding to the target device identifier can be obtained to be stored in the RTA data table of the media data provider; thereby, in the process of using the RTA data table to deliver media data to user accounts, media data that meets the user characteristics can be more accurately delivered to user accounts based on the updated complete label data set corresponding to the user account, thereby effectively improving the conversion rate of media data delivery, so as to further improve the resource utilization of the media data push platform when delivering media data.
[0068] In addition, the key in the key-value pair stored in the RTA data table includes a corresponding device identifier, and the value in the key-value pair includes a corresponding label record including at least two different label values, so that after receiving a media data traffic request, the label record including at least two different label values corresponding to the user account can be queried from the RTA data table according to the device identifier corresponding to the user account, thereby realizing that multiple corresponding label values can be obtained through a single media data traffic request. Compared with the technical solution in the related art that requires multiple label values to be searched due to the storage format of one label corresponding to one key-value pair, the number of data reads can be effectively reduced, so that the target response message returned by a single media data traffic request is smaller, the network bandwidth occupancy is reduced, thereby shortening the request time, and increasing the number of requests processed per second, thereby effectively improving the resource utilization of the media data push platform when delivering media data.
[0069] In one embodiment, the tag includes an offline tag and a real-time tag; detecting the changed tag data associated with the target device identifier includes: when detecting the existence of at least one of the changed offline tag data and the changed real-time tag data associated with the target device identifier, obtaining the changed tag data associated with the target device identifier based on the changed offline tag data and the changed real-time tag data associated with the target device identifier.
[0070] The offline tag data is changed to the tag data corresponding to at least one offline tag after the tag value is changed; and the real-time tag data is changed to the tag data corresponding to at least one real-time tag after the tag value is changed.
[0071] Among them, the data update frequency corresponding to the real-time tag is higher than the data update frequency corresponding to the offline tag.
[0072] Exemplarily, the real-time tag may be an abnormal click behavior tag, a media data click count, or the like; the offline tag may be a login time tag, a registration time tag, a login channel tag, or the like.
[0073] In a specific implementation, the server may obtain the changed label data associated with the target device identifier according to at least one of the changed offline label data and the changed real-time label data associated with the target device identifier when detecting that at least one of the changed offline label data and the changed real-time label data associated with the target device identifier exists. That is, the changed label data associated with the target device identifier may include the changed offline label data and / or the changed real-time label data.
[0074] Among them, the offline tag data is changed to the tag data corresponding to at least one offline tag after the tag value is changed; the real-time tag data is changed to the tag data corresponding to at least one real-time tag after the tag value is changed. In practical applications, the data update frequency corresponding to the real-time tag is higher than the data update frequency corresponding to the offline tag. Accordingly, the change of offline tag data and the change of real-time tag data can be recorded in different incremental tag data tables respectively, and the update frequency of the incremental tag data table corresponding to the change of real-time tag data can be higher than the update frequency of the incremental tag data table corresponding to the change of offline tag data. For example, the update frequency of the incremental tag data table corresponding to the real-time tag data can be minutes, and the update frequency of the incremental tag data table corresponding to the change of offline tag data can be days.
[0075] In the technical solution of this embodiment, the tag includes an offline tag and a real-time tag; when it is detected that there is at least one of the changed offline tag data and the changed real-time tag data associated with the target device identifier, the changed tag data associated with the target device identifier is obtained according to the changed offline tag data and the changed real-time tag data associated with the target device identifier; the changed offline tag data is the tag data corresponding to at least one offline tag after the tag value is changed; the changed real-time tag data is the tag data corresponding to at least one real-time tag after the tag value is changed; the data update frequency corresponding to the real-time tag is higher than the data update frequency corresponding to the offline tag. In this way, in the process of obtaining the changed tag data associated with the target device identifier, at least one of the changed offline tag data and the changed real-time tag data associated with the target device identifier can be obtained. This method of combining the changed offline tag data and the changed real-time tag data can more comprehensively obtain the tag data of the user account, which is conducive to improving the comprehensiveness and reliability of tag data acquisition.
[0076] In one embodiment, obtaining unchanged tag data associated with the target device identifier includes: obtaining a full tag data table; querying the full tag data table for tag data corresponding to at least one tag whose tag value associated with the target device identifier has not changed, to obtain unchanged tag data associated with the target device identifier.
[0077] The full tag data table includes the tag data corresponding to the target device identifier and each tag before the update time corresponding to the tag data is changed.
[0078] In a specific implementation, when the server obtains the unchanged tag data associated with the target device identifier, the server can obtain a full tag data table, which includes the tag data corresponding to the target device identifier and each tag before the update time corresponding to the changed tag data. In this way, the server can query the full tag data table for the tag data corresponding to at least one tag whose tag value associated with the target device identifier has not changed, and obtain the unchanged tag data associated with the target device identifier.
[0079] In actual applications, the server can query the full tag data table for tag data corresponding to all tags whose tag values associated with the target device identifier have not changed, and obtain the unchanged tag data associated with the target device identifier.
[0080] The technical solution of this embodiment is to obtain a full label data table; the full label data table includes the label data corresponding to the target device identifier and each label before the update time corresponding to the changed label data; query the label data corresponding to at least one label whose label value associated with the target device identifier has not changed in the full label data table to obtain the unchanged label data associated with the target device identifier. In this way, by recording the target device identifier and the label data corresponding to each label before the update time corresponding to the changed label data is recorded in the full label data table, the unchanged label data associated with the target device identifier can be efficiently and accurately queried.
[0081] In one embodiment, the method further includes: updating the label data corresponding to the label whose label value associated with the target device identifier in the full label data table has been changed according to the changed label data associated with the target device identifier, to obtain an updated full label data table.
[0082] In a specific implementation, after the server obtains the changed label data associated with the target device identifier, the server can update the label data corresponding to the label whose label value associated with the target device identifier in the full label data table has changed according to the changed label data associated with the target device identifier, and obtain an updated full label data table, so that the updated full label data table records the updated and more comprehensive label data of the target device identifier.
[0083] Exemplarily, the server can update the tag data corresponding to the offline tag after the tag value associated with the target device identifier in the full tag data table is changed based on the change of the offline tag data, and can also update the tag data corresponding to the real-time tag after the tag value associated with the target device identifier in the full tag data table is changed based on the change of the real-time tag data.
[0084] The technical solution of this embodiment updates the label data corresponding to the label whose label value associated with the target device identifier in the full label data table has been changed according to the changed label data associated with the target device identifier, to obtain an updated full label data table; in this way, the updated full label data table records newer and more comprehensive label data, thereby ensuring data consistency.
[0085] In one embodiment, the changed label data and unchanged label data corresponding to the target device identifier are stored in the RTA data table of the media data provider, including: combining the changed label data and unchanged label data corresponding to the target device identifier according to a preset data structure to obtain a label record corresponding to the target device identifier; and storing the label record corresponding to the target device identifier in the RTA data table of the media data provider.
[0086] In a specific implementation, when the server stores the changed label data and unchanged label data corresponding to the target device identifier in the RTA data table of the media data provider, the server can combine the changed label data and unchanged label data corresponding to the target device identifier according to a preset data structure to obtain a label record corresponding to the target device identifier; and store the label record corresponding to the target device identifier in the RTA data table of the media data provider.
[0087] Among them, in the process of combining the changed label data and the unchanged label data corresponding to the target device identification to obtain the label record corresponding to the target device identification, only the label values in the changed label data and the unchanged label data can be combined to obtain the label record, so that the label record corresponding to the target device identification contains the unchanged label value and the changed label value corresponding to the target device identification.
[0088] Exemplarily, the preset data structure corresponding to the tag record may be as follows:
[0089] value={business ID}-{activation date}-{login date}-{black industry identification}-{abnormal channel}-{label n}
[0090] Here, “-” is the separator of the label.
[0091] The technical solution of this embodiment combines the changed label data and unchanged label data corresponding to the target device identifier according to a preset data structure to obtain a label record corresponding to the target device identifier; the label record corresponding to the target device identifier is stored in the RTA data table of the media data provider. In this way, by combining the changed label data and unchanged label data corresponding to the target device identifier according to the preset data structure, a complete label record can be quickly generated, reducing the complexity and time of data processing and improving the efficiency of data integration; at the same time, the use of a preset data structure can ensure the consistency of the label record in format and content, achieve compatibility of label values of each label under multiple channels, reduce data redundancy, and avoid decision errors caused by inconsistent data.
[0092] In one embodiment, the tag record corresponding to the target device identifier is stored in the RTA data table of the media data provider, including: using the target device identifier as a key and the tag record corresponding to the target device identifier as a value to obtain a key-value pair to be stored; storing the key-value pair to be stored in the RTA data table of the media data provider.
[0093] In a specific implementation, when the server stores the tag record corresponding to the target device identifier in the RTA data table of the media data provider, the server can use the target device identifier as the key and the tag record corresponding to the target device identifier as the value to obtain the key-value pair to be stored; and store the key-value pair to be stored in the RTA data table of the media data provider.
[0094] For example, the key-value pair may be in the form of:
[0095] key=Device Type:Device ID
[0096] value={business ID}-{activation date}-{login date}-{black industry identification}-{abnormal channel}-{label n}
[0097] value=1,10-20231028-20231025-1-1_20_second timestamp,2_24_second timestamp
[0098] value=1,10-20231028-#-1-1_20_second timestamp,2_24_second timestamp
[0099] Among them, "-" is the separator symbol of the tag, ", (comma)" indicates whether a tag has multiple tag values. If it is an empty tag, it will be replaced with the placeholder "#" and stored.
[0100] The technical solution of this embodiment is to obtain a key-value pair to be stored by taking the target device identifier as a key and the tag record corresponding to the target device identifier as a value; and to store the key-value pair to be stored in the RTA data table of the media data provider. In this way, the key in the key-value pair stored in the RTA data table includes the corresponding device identification information, and the value in the key-value pair includes the corresponding tag record including the unchanged tag value and the changed tag value. Compared with the storage structure in which one tag corresponds to one key-value pair, the occupied storage space is effectively reduced, and the data storage cost is reduced; after receiving the media data flow request sent to the user account accessing the media platform, the tag record containing the unchanged tag value and the changed tag value corresponding to the user account can be queried from the RTA data table according to the device identifier corresponding to the user account, so that the corresponding complete tag value can be obtained through a single media data flow request. Compared with the technical solution in the related art that requires multiple tag values to be searched due to the storage format of one tag corresponding to one key-value pair, this solution can effectively reduce the number of data reads, reduce the occupation of network bandwidth, and thus shorten the request time and increase the number of requests processed per second.
[0101] In some embodiments, after detecting the existence of changed label data associated with the target device identifier, the label data corresponding to the label whose label value associated with the target device identifier has changed in the full label data table is updated according to the changed label data associated with the target device identifier to obtain an updated full label data table, and then the label data corresponding to the label whose label value associated with the target device identifier has not changed is queried from the updated full label data table to obtain the unchanged label data associated with the target device identifier. According to a preset data structure, the changed label data and the unchanged label data corresponding to the target device identifier are combined and stored in the RTA data table of the media data provider. This process can serve as a cleansing process for the label data of the target device identifier.
[0102] In order to facilitate the understanding of those skilled in the art, Figure 2 A flowchart of writing tag data into the RTA data table of the database corresponding to the media data provider is provided. Taking Redis as an example, combined with Figure 3, which provides a schematic diagram of the label data cleaning process. Specifically, the update frequency of the full label data table and the incremental label data table corresponding to the changed offline label data can be daily. The algorithm group and the data warehouse group will produce an incremental label data table that records the changed offline label data every day. The server will aggregate this batch of changed offline label data and update it to the full label data table for storage, so that the label data in the updated full label data table remains the latest and most complete. Then, based on the changed offline label data that changes every day, the corresponding unchanged label data is taken out from the full label data table to form a complete label record of the corresponding device identification and write it to Redis.
[0103] Exemplarily, the update frequency of the full label data table and the incremental label data table corresponding to the changed offline label data can be daily. Assuming that the target device identifier A has logged in on the 20th, the incremental label data table corresponding to the changed offline label data generated on the 21st contains the login time label data of the target device identifier A (including the login time label and the corresponding changed login time label value). The label data cleaning process of the target device identifier A can be to update the login time field of the target device identifier A in the full label data table, and then find at least one label field (such as activation time, black industry identifier) whose label value of the target device identifier A has not changed from the full label data table, and obtain the unchanged label data associated with the target device identifier A, and write the unchanged label data and the associated changed label data (login time) associated with the target device identifier A into the incremental label data table corresponding to the changed offline label data, so as to cover all label data (login time, activation time, black industry identifier, etc.) of the target device identifier A in the database corresponding to the media data provider, so as to store the changed label data and the unchanged label data corresponding to the target device identifier in the RTA data table in the database corresponding to the media data provider.
[0104] For real-time tags such as abnormal click tags, the data update frequency can be minutes, so the incremental tag data table corresponding to the changed real-time tag data is split into a separate table. Every time the tag value of the real-time tag changes, you only need to find the tag field whose tag value of the corresponding device identifier has not changed from the full tag data table to obtain the unchanged tag data. The unchanged tag data and the tag data corresponding to the real-time tag whose tag value has changed are combined and written to Redis to avoid resetting the tag whose tag value has not changed.
[0105] The incremental label data table generated by the algorithm group may include an algorithm score label table; wherein the algorithm score label in the algorithm score label table may be obtained by predicting and scoring the device identification using a high-order retention algorithm. Accordingly, the algorithm score label in the actual application may be named as the algorithm label.
[0106] In some embodiments, the algorithm tag can be parsed and modified. To facilitate understanding by those skilled in the art, Figure 4 A flowchart of algorithm label parsing transformation is provided. Figure 4 As shown, for newly added algorithm label data, such as a newly added recall high-activity algorithm score label data, it can be submitted to the corresponding policy saving interface to determine whether the newly added algorithm label data can be used to configure preset type objects. In actual applications, preset type objects can refer to advertising products; if not, a prompt message is returned: the newly added algorithm label data does not support the configuration of preset type objects; if yes, rule parsing is performed. Specifically, each algorithm label data can generate an algorithm label sub-method to determine whether the processing request meets the configured algorithm label rule conditions; then, the newly added algorithm label data is stored in the database.
[0107] Among them, in the process of storing the changed offline tag data and / or the changed real-time tag data in the database, a message queue system (such as Kafka) can be used. Specifically, an offline tag synchronization task can be used to specifically read the incremental tag data table (such as the device tag daily table) corresponding to the changed offline tag data and write it to Kafka's offline tag topic, and then a specific consumer program will consume the message of this topic for processing; a real-time tag synchronization task can be used to specifically read the incremental tag data table (such as the abnormal click tag table) corresponding to the changed real-time tag data and write it to Kafka's real-time tag topic, and then a specific consumer program will consume the message of this topic for processing. In this way, in the process of the consumer program consuming the topic message for processing, the data can be converted and stored in the database to be compatible with the various media data delivery strategies to match the read tag data.
[0108] in this way, Figure 3 The provided tag data cleaning method optimizes tag cleaning, realizes the compatibility of algorithm tags, offline tags, and real-time tags with different tag values in multiple channels for device identification, and performs consistency monitoring and delay monitoring on the cleaning results.
[0109] In another embodiment, Figure 5 As shown, a tag data processing method is provided, which is described by taking the method applied to a server as an example, and includes the following steps:
[0110] Step S502, when it is detected that there is at least one of changed offline tag data and changed real-time tag data associated with the target device identifier, the changed tag data associated with the target device identifier is obtained based on the changed offline tag data and changed real-time tag data associated with the target device identifier.
[0111] Step S504, obtaining a full label data table, searching the full label data table for label data corresponding to at least one label whose label value associated with the target device identifier has not changed, and obtaining unchanged label data associated with the target device identifier.
[0112] Step S506: combining the changed label data and the unchanged label data corresponding to the target device identifier according to a preset data structure to obtain a label record corresponding to the target device identifier.
[0113] Step S508: Use the target device identifier as a key and the tag record corresponding to the target device identifier as a value to obtain a key-value pair to be stored.
[0114] Step S510: storing the key-value pairs to be stored in the RTA data table of the media data provider.
[0115] It should be noted that the specific limitations of the above steps can refer to the specific limitations of a tag data processing method above.
[0116] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0117] Based on the same inventive concept, the embodiment of the present application also provides a label data processing device for implementing the label data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the label data processing device provided below can refer to the limitations of the label data processing method above, and will not be repeated here.
[0118] In an exemplary embodiment, Figure 6 As shown, a label data processing device is provided, including: a detection module 610, an acquisition module 620 and a storage module 630, wherein:
[0119] The detection module 610 is used to detect the changed label data associated with the target device identifier; the changed label data is the label data corresponding to at least one label after the label value has changed; the target device identifier is the device identifier corresponding to the device used by the user account that has accessed the media platform.
[0120] The acquisition module 620 is used to acquire the unchanged tag data associated with the target device identification; the unchanged tag data is the tag data corresponding to at least one tag whose tag value has not changed.
[0121] Storage module 630 is used to store the changed label data and unchanged label data corresponding to the target device identifier in the RTA data table of the media data provider; the RTA data table is used to deliver media data to the user account; the RTA data table stores multiple key-value pairs; the key in the key-value pair includes the corresponding device identifier, and the value in the key-value pair includes the corresponding label record with a preset data structure; the label record includes at least two different label values.
[0122] In one embodiment, the tag includes an offline tag and a real-time tag; the detection module 610 is specifically used to obtain the changed tag data associated with the target device identifier according to the changed offline tag data associated with the target device identifier and at least one of the changed real-time tag data when detecting the existence of at least one of the changed offline tag data and the changed real-time tag data associated with the target device identifier; the changed offline tag data is the tag data corresponding to at least one of the offline tags after the tag value is changed; the changed real-time tag data is the tag data corresponding to at least one of the real-time tags after the tag value is changed; the data update frequency corresponding to the real-time tag is higher than the data update frequency corresponding to the offline tag.
[0123] In one embodiment, the acquisition module 620 is specifically used to obtain a full label data table; the full label data table includes the label data corresponding to the target device identifier and each label before the update time corresponding to the changed label data; the label data corresponding to at least one label whose label value associated with the target device identifier has not changed is queried in the full label data table to obtain the unchanged label data associated with the target device identifier.
[0124] In one embodiment, the device also includes: an update module, which is used to update the label data corresponding to the label whose label value associated with the target device identifier in the full label data table has changed according to the changed label data associated with the target device identifier, so as to obtain an updated full label data table.
[0125] In one of the embodiments, the storage module 630 is specifically used to combine the changed label data and the unchanged label data corresponding to the target device identifier according to the preset data structure to obtain a label record corresponding to the target device identifier; and store the label record corresponding to the target device identifier in the RTA data table of the media data provider.
[0126] In one embodiment, the storage module 630 is specifically used to use the target device identifier as a key and the tag record corresponding to the target device identifier as a value to obtain a key-value pair to be stored; and store the key-value pair to be stored in the RTA data table of the media data provider.
[0127] Each module in the above-mentioned tag data processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0128] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store RTA data table data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a label data processing method is implemented.
[0129] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0130] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0131] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0132] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0133] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0134] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0135] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0136] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A tag data processing method, characterized in that: The method comprises: Detecting changed tag data associated with a target device identifier; the changed tag data is tag data corresponding to at least one tag after a tag value has changed; the target device identifier is a device identifier corresponding to a device used by a user account that has accessed a media platform; Acquire unchanged tag data associated with the target device identifier; the unchanged tag data is tag data corresponding to at least one tag whose tag value has not changed; The changed label data and unchanged label data corresponding to the target device identifier are stored in the RTA data table of the media data provider; the RTA data table is used to deliver media data to the user account; the RTA data table stores multiple key-value pairs; the key in the key-value pair includes the corresponding device identifier, and the value in the key-value pair includes the corresponding label record with a preset data structure; the label record includes at least two different label values.
2. The method according to claim 1, characterized in that The tag includes an offline tag and a real-time tag; the detecting of the changed tag data associated with the target device identifier includes: When detecting that at least one of the changed offline tag data and the changed real-time tag data associated with the target device identifier exists, obtaining the changed tag data associated with the target device identifier according to the at least one of the changed offline tag data and the changed real-time tag data associated with the target device identifier; The changed offline tag data is the tag data corresponding to at least one of the offline tags after the tag value is changed; the changed real-time tag data is the tag data corresponding to at least one of the real-time tags after the tag value is changed; the data update frequency corresponding to the real-time tag is higher than the data update frequency corresponding to the offline tag.
3. The method according to claim 1, characterized in that The obtaining of unchanged tag data associated with the target device identification includes: Acquire a full label data table; the full label data table includes label data corresponding to the target device identifier and each label before the update time corresponding to the changed label data; The tag data corresponding to at least one tag whose tag value associated with the target device identifier has not changed is queried in the full tag data table to obtain the unchanged tag data associated with the target device identifier.
4. The method according to claim 3, characterized in that The method further comprises: According to the changed label data associated with the target device identifier, the label data corresponding to the label whose label value associated with the target device identifier in the full label data table is changed is updated to obtain an updated full label data table.
5. The method according to claim 1, characterized in that The storing the changed label data and the unchanged label data corresponding to the target device identifier in the RTA data table of the media data provider includes: According to the preset data structure, the changed label data and the unchanged label data corresponding to the target device identifier are combined to obtain a label record corresponding to the target device identifier; The tag record corresponding to the target device identifier is stored in the RTA data table of the media data provider.
6. The method according to claim 5, characterized in that The step of storing the tag record corresponding to the target device identifier in the RTA data table of the media data provider includes: Using the target device identifier as a key and the tag record corresponding to the target device identifier as a value, to obtain a key-value pair to be stored; The key-value pairs to be stored are stored in the RTA data table of the media data provider.
7. A label data processing device, characterized in that: The device comprises: A detection module, configured to detect changed tag data associated with a target device identifier; the changed tag data being tag data corresponding to at least one tag after a tag value has been changed; the target device identifier being a device identifier corresponding to a device used by a user account that has accessed a media platform; An acquisition module, configured to acquire unchanged tag data associated with the target device identifier; the unchanged tag data is tag data corresponding to at least one tag whose tag value has not changed; A storage module is used to store the changed label data and unchanged label data corresponding to the target device identifier in the RTA data table of the media data provider; the RTA data table is used to deliver media data to the user account; the RTA data table stores multiple key-value pairs; the key in the key-value pair includes the corresponding device identifier, and the value in the key-value pair includes the corresponding label record with a preset data structure; the label record includes at least two different label values.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
