Data processing method and device
By adjusting the attention value and storing relevant information in response to the request of the user account, the problem of low real-time data calculation efficiency in the prior art is solved, and efficient attention value calculation and user relationship map are realized.
Patent Information
- Application Number
- CN202210481730.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-05
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2042-05-05
AI Technical Summary
The prior art is less efficient when calculating the statistical data of user accounts in real time, and it is not convenient to conduct a comprehensive analysis of the live broadcast trailer information of multimedia resources.
Provide a data processing method and device to set, follow, unfollow and delete instructions by responding to requests from a user account, and then adjust the attention value, and store the relevant information only when the user account uploads the instructions and receives the request. information.
It reduces the amount of data processed, improves the calculation efficiency of attention values, accurately counts the attention values of user accounts, and can display information such as attention values in real time, making it easier to build a relationship map between user accounts.
Smart Images

Figure CN114880376B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data analysis, and in particular to a data processing method and device. Background Art
[0002] With the development of computer technology, user accounts can publish information related to multimedia resources to content platforms, and other user accounts on the content platform can also respond to the information published by the user account, such as following, subscribing, etc. In the related art, the statistical data of the user account can be counted into the database, but the amount of data in this method is very large, which makes the real-time data calculation efficiency low. For example, the anchor account on the content platform can publish a live broadcast preview. In the related art, the live broadcast preview related information of all target anchor accounts will be counted into the database. This method makes the real-time data calculation efficiency low and is not convenient for comprehensive analysis of the live broadcast preview related information of all target anchor accounts. Summary of the invention
[0003] The present disclosure provides a data processing method and device to at least solve the above-mentioned problems in the related art, or may not solve any of the above-mentioned problems. The technical solution of the present disclosure is as follows:
[0004] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, comprising: in response to a first request from a first user account for setting indication information, storing relevant information of the indication information, and setting an initial attention value of the indication information, wherein the indication information is used to preview the release of a specified multimedia resource; in response to a second request from a second user account for paying attention to the indication information, increasing the attention value of the indication information; in response to a third request from the second user account for un-paying attention to the indication information that has been paid attention to, decreasing the attention value of the indication information; in response to a fourth request from the first user account for deleting the indication information that has been set, deleting relevant information of the indication information, and decreasing the attention value of the indication information.
[0005] Optionally, in response to a first request from a first user account for setting indication information, storing relevant information of the indication information, and setting an initial attention value of the indication information, includes: in response to the first request, determining a release time of the specified multimedia resource according to the indication information, and determining a time when the first request occurs; when the time when the first request occurs is before a preset time, and the release time is within a preset time interval, storing identification information of the specified multimedia resource corresponding to the indication information, and setting an initial attention value of the indication information, wherein the preset time is the right endpoint time of the preset time interval.
[0006] Optionally, in response to a fourth request from the first user account to delete the indication information that has been set, deleting relevant information of the indication information and lowering the attention value of the indication information, including: in response to the fourth request, determining the release time of the specified multimedia resource according to the indication information, and obtaining the attention value of the indication information at the moment when the fourth request occurs; when the release time is within a preset time interval and the attention value of the indication information at the moment when the fourth request occurs is greater than a first preset value, deleting relevant information of the indication information and lowering the attention value of the indication information to the first preset value.
[0007] Optionally, in response to a second request from a second user account to pay attention to the indication information, the attention value of the indication information is increased, including: in response to the second request, determining the release time of the specified multimedia resource according to the indication information; when the release time is within a preset time interval, increasing the attention value of the indication information by a second preset value.
[0008] Optionally, in response to a third request from the second user account to unfollow the indication information that has been followed, the attention value of the indication information is lowered, including: in response to the third request, determining the release time of the specified multimedia resource according to the indication information; and when the release time is within a preset time interval, reducing the attention value of the indication information by a third preset value.
[0009] Optionally, the method further includes: obtaining the attention value of the first user account when the attention value of the indication information changes; and adjusting the attention value of the first user account according to the change of the attention value of the indication information.
[0010] Optionally, adjusting the attention value of the first user account according to the change of the attention value of the indication information includes: increasing the attention value of the first user account when the attention value of the indication information increases; and decreasing the attention value of the first user account when the attention value of the indication information decreases.
[0011] Optionally, the attention value of the indication information and the attention value of the first user account are both stored in shard data of the database.
[0012] Optionally, it also includes: in response to a ranking storage instruction, determining the ranking information of the first user account at the current moment according to the attention value of the first user account at the current moment; when the ranking information of the first user account at the current moment meets a preset ranking condition, obtaining the attention value of the indication information at the current moment and the attention value of the first user account at the current moment from the shard data, and storing them in the database.
[0013] Optionally, determining the ranking information of the first user account at the current moment based on the attention value of the first user account at the current moment includes: obtaining the attention value of each target user account at the current moment among all target user accounts, wherein the target user accounts include the first user account; comparing the attention value of each target user account at the current moment to determine the ranking information of the first user account at the current moment.
[0014] According to a second aspect of an embodiment of the present disclosure, a data processing device is provided, including: a first response unit, configured to: in response to a first request from a first user account to set indication information, store relevant information of the indication information, and set an initial attention value of the indication information, wherein the indication information is used to announce the release of a specified multimedia resource; a second response unit, configured to: in response to a second request from a second user account to pay attention to the indication information, increase the attention value of the indication information; a third response unit, configured to: in response to a third request from the second user account to unfollow the indication information that has been paid attention to, decrease the attention value of the indication information; and a fourth response unit, configured to: in response to a fourth request from the first user account to delete the indication information that has been set, delete the relevant information of the indication information, and decrease the attention value of the indication information.
[0015] Optionally, the first response unit is configured to: in response to the first request, determine the release time of the specified multimedia resource according to the indication information, and determine the moment when the first request occurs; when the moment when the first request occurs is before the preset moment, and the release time is within the preset time interval, store the identification information of the specified multimedia resource corresponding to the indication information, and set the initial attention value of the indication information, wherein the preset moment is the right endpoint moment of the preset time interval.
[0016] Optionally, the fourth response unit is configured to: in response to the fourth request, determine the release time of the specified multimedia resource according to the indication information, and obtain the attention value of the indication information at the moment when the fourth request occurs; when the release time is within the preset time interval and the attention value of the indication information at the moment when the fourth request occurs is greater than a first preset value, delete the relevant information of the indication information and lower the attention value of the indication information to the first preset value.
[0017] Optionally, the second response unit is configured to: in response to the second request, determine the release time of the specified multimedia resource according to the indication information; and when the release time is within a preset time interval, increase the attention value of the indication information by a second preset value.
[0018] Optionally, the third response unit is configured to: in response to the third request, determine the release time of the specified multimedia resource according to the indication information; and when the release time is within a preset time interval, reduce the attention value of the indication information by a third preset value.
[0019] Optionally, an adjustment unit is further included, configured to: obtain the attention value of the first user account when the attention value of the indication information changes; and adjust the attention value of the first user account according to the change of the attention value of the indication information.
[0020] Optionally, the adjustment unit is configured to: increase the attention value of the first user account when the attention value of the indication information increases; and decrease the attention value of the first user account when the attention value of the indication information decreases.
[0021] Optionally, the attention value of the indication information and the attention value of the first user account are both stored in shard data of the database.
[0022] Optionally, it also includes a ranking determination unit, which is configured to: in response to a ranking storage instruction, determine the ranking information of the first user account at the current moment according to the attention value of the first user account at the current moment; when the ranking information of the first user account at the current moment meets a preset ranking condition, obtain the attention value of the indication information at the current moment and the attention value of the first user account at the current moment from the shard data, and store them in the database.
[0023] Optionally, the ranking determination unit is configured to: obtain the attention value of each target user account among all target user accounts at the current moment, wherein the target user accounts include the first user account; compare the attention value of each target user account at the current moment, and determine the ranking information of the first user account at the current moment.
[0024] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: at least one processor; and at least one memory storing computer executable instructions, wherein the computer executable instructions, when executed by the at least one processor, cause the at least one processor to execute a data processing method according to the present disclosure.
[0025] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium storing instructions is provided. When the instructions are executed by at least one processor, the at least one processor is prompted to execute the data processing method according to the present disclosure.
[0026] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising computer instructions, which implement the data processing method according to the present disclosure when executed by at least one processor.
[0027] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0028] According to the data processing method and device disclosed in the present invention, relevant information of the indication information can be stored only when the first user account uploads the indication information and receives the first request, which can reduce the amount of processed data and improve the calculation efficiency of the attention value.
[0029] In addition, according to the data processing method and device disclosed in the present invention, by adjusting the attention value of the first user account according to the attention value of the indication information, the value of the attention to the first user account can be accurately counted, which plays a positive role in the interaction between user accounts of the platform.
[0030] In addition, according to the data processing method and device disclosed in the present invention, the ranking information of the first user account can be determined and stored in the database for the client to call to display the ranking list information when it meets the preset ranking conditions. This enables information such as the attention value to be displayed in real time and directly, facilitating the construction of a relationship map between the first user account and the second user account.
[0031] In addition, according to the data processing method and device disclosed in the present invention, the relevant data can be first stored in the shard data, and then the data can be extracted from the shard data into the database. When the database is Redis, the hot key problem of Redis can be avoided as much as possible, making the background storage more stable.
[0032] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0034] Figure 1 The invention is a flowchart of a data processing method according to an exemplary embodiment.
[0035] Figure 2 It is an overall framework diagram of a data processing method according to an exemplary embodiment.
[0036] Figure 3 It is a block diagram of a data processing device according to an exemplary embodiment.
[0037] Figure 4 is a block diagram of an electronic device 400 according to an exemplary embodiment. DETAILED DESCRIPTION
[0038] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0039] 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 implementation methods described in the following examples do not represent all implementation methods 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 attached claims.
[0040] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.
[0041] With the development of computer technology, user accounts can publish information related to multimedia resources to content platforms, and other user accounts on the content platform can also react to the information published by the user account, such as paying attention to, subscribing, etc. After the information is followed or unfollowed (subscribed or unsubscribed) by other user accounts, the statistical data such as the attention value (subscription value) of the user account and / or the information will increase or decrease accordingly. In order to facilitate data analysis and management, in the related technology, all these statistical data can be counted into the database and only the corresponding statistical information is displayed through the specific page corresponding to each user account. However, the data volume of this method is large, which makes the real-time data calculation efficiency low, and viewing the relevant information of different user accounts requires jumping to different pages, which makes the operation inconvenient. For example, the anchor account on the content platform can publish a live broadcast notice for the live broadcast during the activity period. The live broadcast notice can be a single live broadcast notice or a periodic live broadcast notice (as long as the live broadcast time corresponding to one live broadcast notice is within the activity period) to display the live broadcast time and live broadcast theme. Since the entrance and form of the live broadcast notice set by the anchor account are various, a method for calculating the attention value for the activity period is needed. In the related technology, when the anchor account is a preset target anchor account, regardless of whether the anchor account has released a live broadcast preview, its related information such as attention value information will be counted in the database and then various types of information will be calculated accordingly, and the live broadcast preview, statistical values and other related information can only be displayed through the personal homepage of the anchor account. This method results in a large amount of data, low efficiency in real-time data calculation, and inconvenient operation.
[0042] In order to solve the problems existing in the above-mentioned related technologies, the present disclosure proposes a data processing method and device, which can store relevant information of the indication information only when the first user account uploads the indication information and receives the first request, thereby reducing the amount of processed data and improving the calculation efficiency of the attention value.
[0043] Next, we will refer to Figures 1 to 4 The data processing method and device according to the present disclosure are described in detail.
[0044] Figure 1 The invention is a flowchart of a data processing method according to an exemplary embodiment. Figure 1 The execution subject of the process shown is the server. Figure 1 In step 101, in response to a first request from a first user account for setting indication information, relevant information of the indication information may be stored, and an initial attention value of the indication information may be set, wherein the indication information is used to announce the release of a specified multimedia resource. It should be noted here that the first user account may be a user account that performs operations on the client.
[0045] According to an exemplary embodiment of the present disclosure, before executing step 101, it may be determined that the first user account is a target user account. The target user account may be at least one user account determined on the big data platform based on a preset condition.
[0046] Specifically, first, in response to the first request, the release time of the specified multimedia resource can be determined according to the indication information, and the time when the first request occurs can be determined. Then, when the time when the first request occurs is before the preset time, and the release time is within the preset time interval, the identification information of the specified multimedia resource corresponding to the indication information can be stored, and the initial attention value of the indication information can be set, wherein the preset time is the right end point time of the preset time interval. It should be noted that the exemplary embodiment of the present disclosure can also store the corresponding relationship between the identification information and the first user account while storing the identification information of the specified multimedia resource corresponding to the indication information.
[0047] For example, in the case where a host account on a content platform publishes a live broadcast preview for a live broadcast during an activity period, the first user account may be the host account, and the indication information may be the live broadcast preview. An exemplary embodiment of the present disclosure may first respond to a first request from the host account for setting a live broadcast preview, determine the live broadcast time according to the live broadcast preview, and determine the time when the first request occurs. Then, when the time when the first request occurs is before or within the activity period, and the live broadcast time is within the activity period, the ID number of the live broadcast and the corresponding relationship between the ID number of the live broadcast and the host account may be stored, and the initial attention value of the live broadcast preview may be set to 0.
[0048] In step 102, in response to a second request from the second user account to pay attention to the indication information, the attention value of the indication information may be increased. It should be noted that the second user account may be a user account that performs operations on the client.
[0049] Specifically, first, in response to the second request, the release time of the specified multimedia resource can be determined according to the indication information. Then, when the release time is within the preset time interval, the attention value of the indication information can be increased by the second preset value. It should be noted that the exemplary embodiments of the present disclosure can also store the corresponding relationship between the identification information of the specified multimedia resource corresponding to the indication information and the second user account while increasing the attention value of the indication information by the second preset value.
[0050] For example, if a host account on a content platform publishes a live broadcast preview for a live broadcast during an event period, first, in response to a second request from a second user account to follow the live broadcast preview, the live broadcast time can be determined according to the live broadcast preview. Then, if the live broadcast time is within the event period, the attention value of the live broadcast preview can be increased by 1 and the corresponding relationship between the id number of the live broadcast and the second user account can be stored.
[0051] In step 103, in response to a third request from the second user account to cancel attention to the indication information that has been paid attention to, the attention value of the indication information may be lowered.
[0052] Specifically, first, in response to the third request, the release time of the specified multimedia resource can be determined according to the indication information. Then, when the release time is within the preset time interval, the attention value of the indication information can be reduced by the third preset value. It should be noted that the exemplary embodiments of the present disclosure can also delete the corresponding relationship between the identification information of the specified multimedia resource corresponding to the indication information and the second user account while reducing the attention value of the indication information by the third preset value.
[0053] For example, if a host account on a content platform publishes a live broadcast notice for a live broadcast during an event period, first, the live broadcast time can be determined according to the live broadcast notice in response to the third request. Then, if the live broadcast time is within the event period, the attention value of the live broadcast notice can be reduced by 1 and the corresponding relationship between the ID number of the live broadcast and the second user account can be deleted.
[0054] In step 104, in response to a fourth request from the first user account to delete the already set indication information, the relevant information of the indication information may be deleted, and the attention value of the indication information may be lowered.
[0055] Specifically, first, in response to the fourth request, the release time of the specified multimedia resource can be determined according to the indication information, and the attention value of the indication information at the moment when the fourth request occurs can be obtained. Then, when the release time is within the preset time interval and the attention value of the indication information at the moment when the fourth request occurs is greater than the first preset value, the relevant information of the indication information can be deleted and the attention value of the indication information can be lowered to the first preset value. It should be noted that the exemplary embodiment of the present disclosure can also delete the corresponding relationship between the identification information of the specified multimedia resource corresponding to the indication information and the first user account while deleting the relevant information of the indication information and lowering the attention value of the indication information to the first preset value.
[0056] For example, first, in response to the fourth request, or knowing that the live broadcast corresponding to the live broadcast preview is not carried out as scheduled, the live broadcast time can be determined according to the live broadcast preview, and the attention value of the live broadcast preview at the time when the fourth request occurs can be obtained. Then, if the live broadcast time is within the activity period and the attention value of the live broadcast preview at the time when the fourth request occurs is greater than 0, the id number of the live broadcast can be deleted, the corresponding relationship between the id number of the live broadcast and the anchor account can be deleted, and the attention value of the live broadcast preview can be reduced to 0.
[0057] According to an exemplary embodiment of the present disclosure, the first user account and the second user account may be user accounts that perform operations on the same client, or may be user accounts that perform operations on different clients, and the present disclosure does not limit this.
[0058] Based on the above steps 101 to 104, it can be known that the server will adjust the attention value of the indication information by responding to the first request, the second request, the third request and the fourth request. The exemplary embodiment of the present disclosure can set the change of the attention value of the indication information to affect the attention value of the first user account. Based on this, the attention value of the first user account can be obtained first when the attention value of the indication information changes, and then the attention value of the first user account can be adjusted according to the change of the attention value of the indication information. Specifically, the attention value of the first user account can be increased when the attention value of the indication information increases, and the attention value of the first user account can be reduced when the attention value of the indication information decreases.
[0059] Based on the above steps 101 to 104, the server sets or adjusts the attention value of the first user account in response to the first request, the second request, the third request and the fourth request. The following describes these four situations respectively.
[0060] In response to the first request, the attention value of the first user account may be increased by the initial attention value of the indication information. For example, the initial attention value of the indication information may be 0. In this case, the attention value of the first user account may be increased by 0.
[0061] In response to the second request, the attention value of the first user account may be increased by a second preset value. For example, the second preset value may be 1. In this case, the attention value of the first user account may be increased by 1.
[0062] In response to the third request, the attention value of the first user account may be reduced by a third preset value. For example, the third preset value may be 1. In this case, the attention value of the first user account may be reduced by 1.
[0063] In response to the fourth request, the attention value of the indication information can be lowered to the first preset value, and the specific reduction value of the attention value of the indication information can be determined, and then the attention value of the first user account can be reduced by the specific reduction value. For example, the attention value of the indication information can be 100, and the first preset value can be 0. In this case, the attention value of the first user account can be reduced by 100.
[0064] According to an exemplary embodiment of the present disclosure, the attention value of the indication information and the attention value of the first user account may both be stored in the shard data of the database. Based on the above description, an exemplary embodiment of the present disclosure may determine the ranking information of the first user account based on the attention value and store it in the database, specifically:
[0065] First, in response to the ranking storage instruction, the ranking information of the first user account at the current moment may be determined according to the attention value of the first user account at the current moment.
[0066] It should be noted that the first user account can upload indication information corresponding to at least one multimedia resource, and the above steps can be used to adjust the attention value of the first user account for each indication information. That is to say, the attention value of the first user account can be comprehensively calculated based on all the indication information uploaded by it. Here, for the target user account of the content platform, it can include the first user account in the above steps, and can also include other user accounts. Then, for other user accounts, the above steps can also be used to adjust their own attention values. An exemplary embodiment of the present disclosure can first obtain the attention value of each target user account in all target user accounts at the current moment (the target user account includes the first user account), and then compare the attention value of each target user account at the current moment to determine the ranking information of the first user account at the current moment. The ranking storage instruction of the exemplary embodiment of the present disclosure can be obtained based on a preset period.
[0067] Then, when the ranking information of the first user account at the current moment meets the preset ranking condition, the attention value of the indication information at the current moment and the attention value of the first user account at the current moment can be obtained from the shard data and stored in the database. For example, the database can be a DB (data base) or a remote dictionary server (Remote Dictionary Server, Redis), and the preset ranking condition can be within the top N.
[0068] From the perspective of the server processing at least one target user account, the above process can be described as: according to the preset cycle, the target user account that meets the preset ranking conditions, the identification information of the specified multimedia resource corresponding to the indication information, the attention value of the indication information and the attention value of the target user account are obtained from the shard data, and stored in the database. Correspondingly, any client operated by the user account is described as the execution subject. First, based on the ranking list display instruction, a list request can be sent to the server. Then, the target user account that meets the preset ranking conditions, the indication information, the attention value of the indication information and the attention value of the target user account (these four types of information are stored in the database) sent by the server can be received and displayed on the list page.
[0069] Figure 2 is an overall framework diagram of a data processing method according to an exemplary embodiment. Figure 2 , from the perspective of processing at least one target user account, the data processing method in the exemplary embodiment of the present disclosure is further explained. Figure 2 The overall framework diagram shown is set up as three modules, the first module is a module for determining a target user account, the second module is a module for processing requests of the target user account, and the third module is a module for processing requests of a user account of a viewer serving as indication information.
[0070] In the first module, the following steps can be performed:
[0071] Based on preset conditions, at least one user account is determined on the big data platform as the target user account, and the target user account is written to the database (Redis) through the hiveToKafka task.
[0072] In the second module, the following steps can be performed:
[0073] Any user account can upload indication information and send a first request to the server. In response to the first request, the server can store the identification information of the designated multimedia resource corresponding to the indication information, store the corresponding relationship between the identification information and the user account, and set the initial attention value of the indication information, if the user account is the target user account, the release time of the designated multimedia resource corresponding to the indication information is within the preset time interval, and the time when the first request occurs is before the right end time of the preset time interval.
[0074] Any user account may delete the uploaded indication information and send a fourth request to the server. In response to the fourth request, the server may delete the identification information of the designated multimedia resource corresponding to the indication information, delete the correspondence between the identification information and the user account, lower the attention value of the indication information to the first preset value, determine the specific lowered value of the attention value of the indication information, and then reduce the attention value of the target user account corresponding to the indication information by the specific lowered value, if the user account is the target user account, the release time of the designated multimedia resource corresponding to the indication information is within the preset time interval, and the attention value of the indication information at the time when the fourth request occurs is greater than the first preset value.
[0075] In the third module, the following steps can be performed:
[0076] Any user account can follow the uploaded indication information as the second user account and send a second request to the server. In response to the second request, the server can increase the attention value of the indication information by a second preset value, increase the attention value of the target user account corresponding to the indication information by a second preset value, and store the corresponding relationship between the identification information of the specified multimedia resource corresponding to the indication information and the user account, if the indication information exists, the release time of the specified multimedia resource corresponding to the indication information is within the preset time interval, and the indication information is uploaded by the target user account.
[0077] Any user account can cancel the indication information that has been followed as the second user account and send a third request to the server. In response to the third request, the server can reduce the attention value of the indication information by a third preset value, reduce the attention value of the target user account corresponding to the indication information by a third preset value, and delete the corresponding relationship between the identification information of the specified multimedia resource corresponding to the indication information and the user account, if the indication information exists, the release time of the specified multimedia resource corresponding to the indication information is within the preset time interval, and the indication information is uploaded by the target user account.
[0078] Figure 3 is a block diagram of a data processing device according to an exemplary embodiment. Figure 3 The data processing device 300 includes a first response unit 301 , a second response unit 302 , a third response unit 303 and a fourth response unit 304 .
[0079] The first response unit 301 may store relevant information of the indication information and set an initial attention value of the indication information in response to a first request for setting indication information by the first user account, wherein the indication information is used to announce the release of the specified multimedia resource. It should be noted here that the first user account may be a user account that performs operations on the client.
[0080] According to an exemplary embodiment of the present disclosure, before the first response unit 301 is executed, it can be determined that the first user account is a target user account. The target user account can be at least one user account determined on the big data platform based on a preset condition.
[0081] Specifically, first, the first response unit 301 may respond to the first request, determine the release time of the specified multimedia resource according to the indication information, and determine the time when the first request occurs. Then, the first response unit 301 may store the identification information of the specified multimedia resource corresponding to the indication information and set the initial attention value of the indication information when the time when the first request occurs is before the preset time and the release time is within the preset time interval, wherein the preset time is the right end time of the preset time interval. It should be noted that the first response unit 301 may also store the corresponding relationship between the identification information and the first user account while storing the identification information of the specified multimedia resource corresponding to the indication information.
[0082] For example, in the case where a host account on a content platform publishes a live broadcast preview for a live broadcast during an activity period, the first user account may be the host account, and the indication information may be the live broadcast preview. First, the first response unit 301 may respond to the first request of the host account for setting a live broadcast preview, determine the live broadcast time according to the live broadcast preview, and determine the time when the first request occurs. Then, the first response unit 301 may store the ID number of the live broadcast and the corresponding relationship between the ID number of the live broadcast and the host account, and set the initial attention value of the live broadcast preview to 0 when the time when the first request occurs is before or within the activity period, and the live broadcast time is within the activity period.
[0083] The second responding unit 302 may increase the attention value of the indication information in response to a second request from the second user account for paying attention to the indication information.
[0084] Specifically, first, the second response unit 302 may determine the release time of the specified multimedia resource according to the indication information in response to the second request. Then, the second response unit 302 may increase the attention value of the indication information by the second preset value when the release time is within the preset time interval. It should be noted that the second response unit 302 may also store the corresponding relationship between the identification information of the specified multimedia resource corresponding to the indication information and the second user account while increasing the attention value of the indication information by the second preset value.
[0085] For example, in the case where a host account on a content platform publishes a live broadcast notice for a live broadcast during an activity period, first, the second response unit 302 may respond to the second request of the second user account for following the live broadcast notice and determine the live broadcast time according to the live broadcast notice. Then, if the live broadcast time is within the activity period, the second response unit 302 may increase the attention value of the live broadcast notice by 1 and store the corresponding relationship between the id number of the live broadcast and the second user account.
[0086] The third responding unit 303 may lower the attention value of the indication information in response to the third request from the second user account to cancel attention to the indication information that has been paid attention to.
[0087] Specifically, first, the third response unit 303 may determine the release time of the specified multimedia resource according to the indication information in response to the third request. Then, the third response unit 303 may reduce the attention value of the indication information by a third preset value when the release time is within the preset time interval. It should be noted that the third response unit 303 may also delete the corresponding relationship between the identification information of the specified multimedia resource corresponding to the indication information and the second user account while reducing the attention value of the indication information by the third preset value.
[0088] For example, if a host account on a content platform publishes a live broadcast notice for a live broadcast during an activity period, first, the third response unit 303 may respond to the third request and determine the live broadcast time according to the live broadcast notice. Then, if the live broadcast time is within the activity period, the third response unit 303 may reduce the attention value of the live broadcast notice by 1 and delete the corresponding relationship between the ID number of the live broadcast and the second user account.
[0089] The fourth responding unit 304 may delete the relevant information of the indication information and lower the attention value of the indication information in response to the fourth request of the first user account for deleting the indication information that has been set.
[0090] Specifically, first, the fourth response unit 304 may respond to the fourth request, determine the release time of the specified multimedia resource according to the indication information, and obtain the attention value of the indication information at the moment when the fourth request occurs. Then, the fourth response unit 304 may delete the relevant information of the indication information and lower the attention value of the indication information to the first preset value when the release time is within the preset time interval and the attention value of the indication information at the moment when the fourth request occurs is greater than the first preset value. It should be noted that the fourth response unit 304 may also delete the corresponding relationship between the identification information of the specified multimedia resource corresponding to the indication information and the first user account while deleting the relevant information of the indication information and lowering the attention value of the indication information to the first preset value.
[0091] For example, first, the fourth response unit 304 may respond to the fourth request, or learn that the live broadcast corresponding to the live broadcast preview is not carried out as scheduled, determine the live broadcast time according to the live broadcast preview, and obtain the attention value of the live broadcast preview at the time when the fourth request occurs. Then, the fourth response unit 304 may delete the ID number of the live broadcast, delete the corresponding relationship between the ID number of the live broadcast and the anchor account, and reduce the attention value of the live broadcast preview to 0 if the live broadcast time is within the activity period and the attention value of the live broadcast preview at the time when the fourth request occurs is greater than 0.
[0092] According to an exemplary embodiment of the present disclosure, the first user account and the second user account may be user accounts that perform operations on the same client, or may be user accounts that perform operations on different clients, and the present disclosure does not limit this.
[0093] Based on the above description, it can be known that the server will adjust the attention value of the indication information by responding to the first request, the second request, the third request and the fourth request. The exemplary embodiment of the present disclosure can set the change of the attention value of the indication information to affect the attention value of the first user account. Based on this, the data processing device 300 may also include an adjustment unit. The adjustment unit may first obtain the attention value of the first user account when the attention value of the indication information changes. The adjustment unit may then adjust the attention value of the first user account according to the change of the attention value of the indication information. Specifically, the adjustment unit may increase the attention value of the first user account when the attention value of the indication information increases, and the adjustment unit may reduce the attention value of the first user account when the attention value of the indication information decreases.
[0094] The server sets or adjusts the attention value of the first user account in response to the first request, the second request, the third request and the fourth request. The following describes these four situations respectively.
[0095] In response to the first request, the adjustment unit may increase the attention value of the first user account by the initial attention value of the indication information. For example, the initial attention value of the indication information may be 0. In this case, the adjustment unit may increase the attention value of the first user account by 0.
[0096] In response to the second request, the adjustment unit may increase the attention value of the first user account by a second preset value. For example, the second preset value may be 1. In this case, the adjustment unit may increase the attention value of the first user account by 1.
[0097] In response to the third request, the adjustment unit may reduce the attention value of the first user account by a third preset value. For example, the third preset value may be 1. In this case, the adjustment unit may reduce the attention value of the first user account by 1.
[0098] In response to the fourth request, the attention value of the indication information may be lowered to the first preset value. The adjustment unit may determine the specific reduction value of the attention value of the indication information, and then the adjustment unit may reduce the attention value of the first user account by the specific reduction value. For example, the attention value of the indication information may be 100, and the first preset value may be 0. In this case, the adjustment unit may reduce the attention value of the first user account by 100.
[0099] According to an exemplary embodiment of the present disclosure, the attention value of the indication information and the attention value of the first user account may both be stored in the shard data of the database. Based on the above description, an exemplary embodiment of the present disclosure may determine the ranking information of the first user account based on the attention value and store it in the database. Specifically, the data processing device 300 may further include a ranking determination unit:
[0100] First, the ranking determination unit may determine the ranking information of the first user account at the current moment according to the attention value of the first user account at the current moment in response to the ranking storage instruction.
[0101] It should be noted that the first user account can upload indication information corresponding to at least one multimedia resource, and the above steps can be used to adjust the attention value of the first user account for each indication information. That is to say, the attention value of the first user account can be comprehensively calculated based on all the indication information uploaded by it. Here, for the target user account of the content platform, it may include the first user account in the above steps, and may also include other user accounts. Then, for other user accounts, the above steps can also be used to adjust their own attention values. The ranking determination unit can first obtain the attention value of each target user account among all target user accounts at the current moment (the target user account includes the first user account), and then compare the attention value of each target user account at the current moment to determine the ranking information of the first user account at the current moment. The ranking storage instruction of the exemplary embodiment of the present disclosure can be obtained based on a preset period.
[0102] Then, the ranking determination unit may obtain the attention value of the indication information at the current moment and the attention value of the first user account at the current moment from the shard data when the ranking information of the first user account at the current moment meets the preset ranking condition, and store them in the database. For example, the database may be a DB (data base) or a remote dictionary server (RemoteDictionary Server, Redis), and the preset ranking condition may be within the top N.
[0103] Figure 4 is a block diagram of an electronic device 400 according to an exemplary embodiment.
[0104] Reference Figure 4The electronic device 400 includes at least one memory 401 and at least one processor 402, wherein the at least one memory 401 stores a set of computer executable instructions, and when the computer executable instruction set is executed by the at least one processor 402, a data processing method according to an exemplary embodiment of the present disclosure is executed.
[0105] As an example, the electronic device 400 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above-mentioned instruction set. Here, the electronic device 400 is not necessarily a single electronic device, but may also be any device or circuit collection capable of executing the above-mentioned instructions (or instruction sets) individually or in combination. The electronic device 400 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.
[0106] In the electronic device 400, the processor 402 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not limitation, the processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0107] The processor 402 may execute instructions or codes stored in the memory 401, which may also store data. Instructions and data may also be sent and received over a network via a network interface device, which may employ any known transmission protocol.
[0108] The memory 401 may be integrated with the processor 402, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 401 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory 401 and the processor 402 may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 402 can read files stored in the memory.
[0109] In addition, the electronic device 400 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device 400 may be connected to each other via a bus and / or a network.
[0110] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium storing instructions may also be provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to perform the data processing method according to the exemplary embodiment of the present disclosure. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0111] According to an exemplary embodiment of the present disclosure, a computer program product may also be provided. Instructions in the computer program product may be executed by a processor of a computer device to implement the data processing method according to the exemplary embodiment of the present disclosure.
[0112] According to the data processing method and device disclosed in the present invention, relevant information of the indication information can be stored only when the first user account uploads the indication information and receives the first request, which can reduce the amount of processed data and improve the calculation efficiency of the attention value.
[0113] In addition, according to the data processing method and device disclosed in the present invention, by adjusting the attention value of the first user account according to the attention value of the indication information, the value of the attention to the first user account can be accurately counted, which plays a positive role in the interaction between user accounts of the platform.
[0114] In addition, according to the data processing method and device disclosed in the present invention, the ranking information of the first user account can be determined and stored in the database for the client to call to display the ranking list information when it meets the preset ranking conditions. This enables information such as the attention value to be displayed in real time and directly, facilitating the construction of a relationship map between the first user account and the second user account.
[0115] In addition, according to the data processing method and device disclosed in the present invention, the relevant data can be first stored in the shard data, and then the data can be extracted from the shard data into the database. When the database is Redis, the hot key problem of Redis can be avoided as much as possible, making the background storage more stable.
[0116] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0117] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A data processing method, characterized in that: include: In response to a first request from a first user account for setting indication information, storing relevant information of the indication information and setting an initial attention value of the indication information, wherein the indication information is used to announce the release of a specified multimedia resource; In response to a second request from a second user account for paying attention to the indication information, increasing the attention value of the indication information; In response to a third request from the second user account to cancel attention to the indication information that has been paid attention to, lowering the attention value of the indication information; In response to a fourth request from the first user account to delete the indication information that has been set, the relevant information of the indication information is deleted, and the attention value of the indication information is lowered.
2. The data processing method according to claim 1, characterized in that: The step of responding to a first request from a first user account for setting indication information, storing relevant information of the indication information, and setting an initial attention value of the indication information includes: In response to the first request, determining a release time of the specified multimedia resource according to the indication information, and determining a time when the first request occurs; When the time when the first request occurs is before the preset time, and the publishing time is within the preset time interval, storing the identification information of the specified multimedia resource corresponding to the indication information, and setting the initial attention value of the indication information, The preset time is the right end point of the preset time interval.
3. The data processing method according to claim 1, characterized in that: The step of deleting the related information of the indication information and lowering the attention value of the indication information in response to the fourth request of the first user account to delete the indication information that has been set includes: In response to the fourth request, determining a release time of the designated multimedia resource according to the indication information, and acquiring an attention value of the indication information at the time when the fourth request occurs; When the release time is within the preset time interval and the attention value of the indication information at the moment when the fourth request occurs is greater than a first preset value, the relevant information of the indication information is deleted and the attention value of the indication information is lowered to the first preset value.
4. The data processing method according to claim 1, characterized in that: In response to a second request from a second user account for paying attention to the indication information, increasing the attention value of the indication information includes: In response to the second request, determining a publishing time of the specified multimedia resource according to the indication information; When the release time is within the preset time interval, the attention value of the indication information is increased by a second preset value.
5. The data processing method according to claim 1, characterized in that: The step of lowering the attention value of the indication information in response to the third request for the second user account to cancel attention to the indication information that has been paid attention to comprises: In response to the third request, determining a publishing time of the designated multimedia resource according to the indication information; When the release time is within the preset time interval, the attention value of the indication information is reduced by a third preset value.
6. The data processing method according to any one of claims 1 to 5, characterized in that: Also includes: When the attention value of the indication information changes, obtaining the attention value of the first user account; The attention value of the first user account is adjusted according to the change of the attention value of the indication information.
7. The data processing method according to claim 6, characterized in that: The adjusting the attention value of the first user account according to the change of the attention value of the indication information includes: When the attention value of the indication information increases, increasing the attention value of the first user account; When the attention value of the indication information decreases, the attention value of the first user account is decreased.
8. The data processing method according to claim 6, characterized in that: The attention value of the indication information and the attention value of the first user account are both stored in the shard data of the database.
9. The data processing method according to claim 8, characterized in that: Also includes: In response to the ranking storage instruction, determining the ranking information of the first user account at the current moment according to the attention value of the first user account at the current moment; When the ranking information of the first user account at the current moment meets the preset ranking condition, the attention value of the indication information at the current moment and the attention value of the first user account at the current moment are obtained from the shard data and stored in the database.
10. The data processing method according to claim 9, characterized in that: The determining, according to the attention value of the first user account at the current moment, the ranking information of the first user account at the current moment includes: Obtaining the attention value of each target user account at a current moment among all target user accounts, wherein the target user accounts include the first user account; The attention values of each target user account at the current moment are compared to determine the ranking information of the first user account at the current moment.
11. A data processing device, characterized in that: include: A first response unit is configured to: in response to a first request for setting indication information from a first user account, store relevant information of the indication information and set an initial attention value of the indication information, wherein the indication information is used to announce the release of a specified multimedia resource; A second response unit is configured to: in response to a second request from a second user account for paying attention to the indication information, increase the attention value of the indication information; A third response unit is configured to: in response to a third request from the second user account to cancel the attention to the indication information that has been paid attention to, lower the attention value of the indication information; The fourth response unit is configured to: in response to a fourth request from the first user account to delete the indication information that has been set, delete the relevant information of the indication information and lower the attention value of the indication information.
12. The data processing device according to claim 11, characterized in that The first response unit is configured to: In response to the first request, determining a release time of the specified multimedia resource according to the indication information, and determining a time when the first request occurs; When the time when the first request occurs is before the preset time, and the publishing time is within the preset time interval, storing the identification information of the specified multimedia resource corresponding to the indication information, and setting the initial attention value of the indication information, The preset time is the right end point of the preset time interval.
13. The data processing device according to claim 11, characterized in that: The fourth response unit is configured to: In response to the fourth request, determining a release time of the designated multimedia resource according to the indication information, and acquiring an attention value of the indication information at the time when the fourth request occurs; When the release time is within the preset time interval and the attention value of the indication information at the moment when the fourth request occurs is greater than a first preset value, the relevant information of the indication information is deleted and the attention value of the indication information is lowered to the first preset value.
14. The data processing device according to claim 11, characterized in that: The second response unit is configured to: In response to the second request, determining a publishing time of the specified multimedia resource according to the indication information; When the release time is within the preset time interval, the attention value of the indication information is increased by a second preset value.
15. The data processing device according to claim 11, characterized in that: The third response unit is configured to: In response to the third request, determining a publishing time of the designated multimedia resource according to the indication information; When the release time is within the preset time interval, the attention value of the indication information is reduced by a third preset value.
16. The data processing device according to any one of claims 11 to 15, characterized in that Also included is an adjustment unit configured to: When the attention value of the indication information changes, obtaining the attention value of the first user account; The attention value of the first user account is adjusted according to the change of the attention value of the indication information.
17. The data processing device according to claim 16, characterized in that: The adjustment unit is configured as: When the attention value of the indication information increases, increasing the attention value of the first user account; When the attention value of the indication information decreases, the attention value of the first user account is decreased.
18. The data processing device according to claim 16, characterized in that: The attention value of the indication information and the attention value of the first user account are both stored in the shard data of the database.
19. The data processing device according to claim 18, characterized in that It also includes a ranking determination unit configured to: In response to the ranking storage instruction, determining the ranking information of the first user account at the current moment according to the attention value of the first user account at the current moment; When the ranking information of the first user account at the current moment meets the preset ranking condition, the attention value of the indication information at the current moment and the attention value of the first user account at the current moment are obtained from the shard data and stored in the database.
20. The data processing device according to claim 19, characterized in that The ranking determination unit is configured to: Obtaining the attention value of each target user account at a current moment among all target user accounts, wherein the target user accounts include the first user account; The attention values of each target user account at the current moment are compared to determine the ranking information of the first user account at the current moment.
21. An electronic device, characterized in that: include: at least one processor; at least one memory storing computer executable instructions, Wherein, when the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to execute the data processing method according to any one of claims 1 to 10.
22. A computer-readable storage medium storing instructions, characterized in that: When the instructions are executed by at least one processor, the at least one processor is prompted to execute the data processing method according to any one of claims 1 to 10.
23. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by at least one processor, the data processing method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Live broadcast room ranking method, electronic equipment and readable storage medium
CN108093274A
Resource display method and device based on live broadcast room, terminal and storage medium
CN113891106A