CN113326397A - Service data processing method and device - Google Patents

Service data processing method and device Download PDF

Info

Publication number
CN113326397A
CN113326397A CN202110889019.6A CN202110889019A CN113326397A CN 113326397 A CN113326397 A CN 113326397A CN 202110889019 A CN202110889019 A CN 202110889019A CN 113326397 A CN113326397 A CN 113326397A
Authority
CN
China
Prior art keywords
period
business data
data set
accumulated
incremental
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110889019.6A
Other languages
Chinese (zh)
Inventor
钱庄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110889019.6A priority Critical patent/CN113326397A/en
Publication of CN113326397A publication Critical patent/CN113326397A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • G06F16/735Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings

Abstract

The present disclosure relates to a method and an apparatus for processing service data, including: acquiring first incremental business data generated on a current first date by executing a first scheduling task; determining a first period in which a first date is located in a preset first period configuration table, wherein the first period is a period from a first starting date to a first ending date; adding first incremental business data into a first accumulated business data set under the condition that the first accumulated business data set corresponding to a second period in a first period configuration table is obtained and the first period and the second period are the same period; and under the condition that the first accumulated service data set is acquired and the first period and the second period are not the same, adding the first incremental service data into an empty second accumulated service data set. The problem that the task scheduling cycle flexibility is low is solved.

Description

Service data processing method and device
Technical Field
The present disclosure relates to the field of computers, and in particular, to a method and an apparatus for processing service data.
Background
In the related technology, after the service is released, the service use condition of the user needs to be known according to the feedback of the user, and then the related resources can be recommended to the user in time according to the requirement of the user. For example, in a short video platform, a developer needs to retrieve service data at regular intervals, know the favorite type of a short video of a user according to the service data, and recommend the short video content of a relevant type according to the favorite type of the user.
When calling service data, it is a common practice to modify a period end date variable fixed in a script to achieve the purpose of modifying a statistical period. However, modifying script files too frequently is complicated for developers, increases workload, and has a certain risk of manual modification. In most scenarios, the data warehouse avoids creating such tasks with unstable periods, and there are often stable time periods like weeks, months and quarters as statistical periods, but this also causes great obstacles to flexibly changing data statistics. The traditional scheme has no flexibility of being compatible with services on the basis of considering task stability.
Therefore, no effective solution exists at present for the problem of low flexibility of task scheduling period in the related art.
Disclosure of Invention
The present disclosure provides a method and an apparatus for processing service data, so as to at least solve the problem of low task scheduling cycle flexibility in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for processing service data is provided, including: acquiring first incremental business data generated on a current first date by executing a first scheduling task; determining a first period where the first date is located in a preset first period configuration table, wherein the first period is a period from a first starting date to a first ending date; adding the first incremental business data to a first accumulated business data set under the condition that the first accumulated business data set corresponding to a second period in the first period configuration table is obtained and the first period and the second period are the same period; and adding the first incremental business data to an empty second cumulative business data set under the condition that the first cumulative business data set is acquired and the first period and the second period are not the same.
According to a second aspect of the embodiments of the present disclosure, there is provided a device for processing service data, including: the acquiring unit is configured to execute the first increment business data generated on the first date by executing a first scheduling task on the current first date; a determining unit configured to perform determination of a first period in which the first date is located in a preset first period configuration table, wherein the first period is a period from a first start date to a first end date, a first group of periods are configured in the first period configuration table, and each period corresponds to one start date and one end date; a first processing unit, configured to add the first incremental service data to a first aggregate service data set when a first aggregate service data set corresponding to a second period in the first period configuration table is acquired and the first period is the same as the second period, where the first aggregate service data set includes aggregate service data generated at the second period; a second processing unit, configured to add the first incremental traffic data to an empty second cumulative traffic data set when the first cumulative traffic data set is acquired and the first period is different from the second period, where the second cumulative traffic data set includes cumulative traffic data generated over the first period.
According to a third aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium including instructions that, when executed by a processor of a processing server of business data, enable the processing server of business data to perform the above-mentioned processing method of business data.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the period of the scheduling task can be flexibly changed through the period table, namely, the change of the period configuration table can flexibly influence the change of the future statistical period.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of a system environment shown in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of processing business data in accordance with an exemplary embodiment;
FIG. 3 is an overall flow diagram, shown in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating a traffic data processing apparatus according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the process of developing the service, the service data needs to be called at intervals and the service release condition needs to be known in time, and corresponding adjustment can be performed according to the service condition so as to ensure the quality of the service. Taking the short video client as an example, a developer needs to call service data at regular intervals to know the favorite type of a user or know the use condition of a certain function in the short video client. Corresponding functions in the short video client can be adjusted according to the service data, or related short videos are recommended to the user according to the favorite types of the user, so that the requirements of the user are met. For example, service data of videos watched by the user is called at intervals, short video types liked by the user can be known through the service data, and related types of videos can be recommended to the user. Or, the service data of a certain function of the short video client is called at intervals, the user use condition of the function after the function is on-line can be known through the service data, the defects of the function can be known in time, the quality of the function can be improved through adjustment, the requirements of users are met, and further the user viscosity can be improved.
As an alternative embodiment, the processing of the service data of the present disclosure may be applied to the system environment shown in fig. 1, where the system environment includes the terminal 101, the server 102, and the database 103. The terminal device may be a terminal device configured with a target client, and the terminal device may include, but is not limited to, at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), notebook computers, tablet computers, palm computers, MID (Mobile Internet Devices), PAD, desktop computers, smart televisions, etc. The target client may be a video client (e.g., a short video client), an instant messaging client, a browser client, an educational client, etc. Such networks may include, but are not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communication. The server may be a single server, a server cluster composed of a plurality of servers, or a cloud server. The database may be used to store business data.
Fig. 2 is a flowchart illustrating a method for processing service data according to an exemplary embodiment, and as shown in fig. 2, the method for processing service data can be used in the server, and includes the following steps:
in step S21, acquiring first incremental business data generated on a first date where the current date is located by executing a first scheduling task;
wherein executing the first scheduled task may invoke business data in the data repository, and the first date is a date on which the first scheduled task was executed. The business data generated at the first date in the data warehouse is first incremental business data. For example, the first date is 2021 year 1, month 5, and in the case where the first scheduling task is executed on day 1, month 5, the data bit generated on day 1, month 5 is the first incremental business data.
In step S22, a first period in which the first date is located is determined in a preset first period configuration table, wherein the first period is a period from a first start date to a first end date;
the first period table may be set according to an actual situation, for example, the first period table may be set according to a statistical period of the service data, or according to an online period of the service data. The first group of cycles in the first cycle table may be one cycle or may be at least two cycles, and the start date and the end date of the cycle constitute one cycle. For example, the start date 2021-01-01 and the end date 2021-02-28 constitute a period. If the date on which the first scheduled task is executed is 2021-01-05, by looking up the first period table, it can be determined that the first period in which the first date is located is a period consisting of the start date 2021-01-01 and the end date 2021-02-28.
In step S23, when a first cumulative service data set corresponding to a second period in the first period configuration table has been acquired and the first period and the second period are the same period, adding the first incremental service data to the first cumulative service data set;
the first period table may include a plurality of periods, and the service data of each period is accumulatively stored as an accumulated service data set. For example, the accumulated data generated during the period consisting of the start date 2021-01-01 and the end date 2021-02-28 is the first accumulated business data set. 2021-01-05 is in the period, the first incremental business data accumulation generated by 2021-01-05 is added to the first accumulated business data set.
In step S24, when the first cumulative traffic data set has been acquired and the first period and the second period are not the same period, the first incremental traffic data is added to an empty second cumulative traffic data set.
For example, the accumulated data generated in the second period consisting of the start date 2021-01-01 and the end date 2021-02-28 is the first accumulated business data set. The date of executing the first scheduled task is 2021-03-06, and it is determined by looking up the first period table that 2021-03-01 corresponds to the first period having 2021-03-01 as the start date 2021-04-30 as the end date. If the first period is different from the second period, the first incremental business data generated by 2021-03-01 is accumulatively stored in a second accumulated business data set corresponding to the first period, and the second accumulated business data set may accumulatively store data generated by 2021-03-01 to 2021-04-30.
Through the steps, the cycle of the first date for executing the first scheduling task is determined in the preset first cycle table, and incremental data generated by the first date are added to the accumulated business data set of the corresponding cycle. Under the condition of not modifying the script, the period of the accumulated data can be modified by modifying the first period table, and the effect of improving the flexibility of the task scheduling period is achieved.
As an alternative embodiment, the following is described with a specific example. Before compiling the routine scheduling task, the configuration work of the periodic table is firstly completed, and a first periodic table is created, wherein the periods in the periodic table are allowed to be modified. Table 1 below is an alternative periodic table, and the period in table 1 is only for illustrating the present disclosure and is not limited thereto.
Figure 36382DEST_PATH_IMAGE001
The number of cycles, the start date and the end date of the cycles in table 1 above may be determined according to actual circumstances. And accumulating and storing the business data in each period, wherein the accumulated data in each period form an accumulated business data set, and the accumulated business data sets in different periods can be stored in corresponding partitions.
Taking 2021-01-05 as an example to execute the first scheduling task, the business data generated on the day 2021-01-05 is the first incremental business data, and it can be determined 2021-01-05 is located in 202101 period formed by the start date 2021-01-01 and the end date 2021-02-28 by looking up the first period table. 202101 the business data 2021-01-01 to 2021-01-04 has been accumulatively stored in the first accumulation business data set corresponding to the period, 2021-01-05 may be added to the first accumulation business data set, and thus 2021-01-01 to 2021-01-05 may be accumulatively stored in the first accumulation business data set.
Taking 2021-03-01 as an example to execute the first scheduling task, the business data generated on the day 2021-03-01 is the first incremental business data, and it can be determined 2021-03-01 is located in 202102 period formed by the start date 2021-03-01 and the end date 2021-04-30 by looking up the first periodic table. The first cumulative service data set stores service data in 202101 cycles, 202102 and 202101 are not in the same cycle, and at this time, an empty second cumulative service data set may be created, the first incremental service data generated on the day 2021-03-01 may be added to the second cumulative service data set, and the service data generated on the days 2021-03-01 to 2021-04-30 may be cumulatively stored in the second cumulative service data set.
In the above embodiment, the service accumulated data of different periods can be called by modifying the period start date and the period end date in the period table, and the script file does not need to be modified, so that the flexibility of the scheduling period is improved.
Optionally, the adding the first incremental business data to the empty second cumulative business data set includes: emptying the first accumulated service data set to obtain a second accumulated service data set; adding the first incremental business data to the second cumulative business data set; or creating an empty second cumulative service data set; and adding the first incremental business data to the second cumulative business data set.
As an optional implementation manner, the second aggregate service data set may be formed after the first aggregate service data set is emptied, that is, data in the first aggregate service data set is emptied to obtain the second aggregate service data set. Or, the first accumulated service data set may be reserved, and the second service data set may be newly created.
Taking the first cycle table shown in table 1 as an example, the business data generated by 2021-01-01 to 2021-02-28 is accumulatively stored in the first accumulated business data set, after the business data generated by 2021-01-01 to 2021-02-28 is called from the first accumulated business data set, the business data in the first accumulated business data set may be cleared to obtain an empty second accumulated business data set, the first incremental business data generated on the day 2021-03-01 may be stored in the second accumulated business data set, and the second accumulated business data set may accumulatively store the business data generated by 2021-03-01 to 2021-04-30.
Business data generated by 2021-01-01 to 2021-02-28 are accumulatively stored in a first accumulated business data set, after the business data generated by 2021-01-01 to 2021-02-28 is called from the first accumulated business data set, a second incremental business data set is newly created, the first incremental business data generated on the day 2021-03-01 is stored in the second accumulated business data set, and the second accumulated business data set can accumulatively store the business data generated by 2021-03-01 to 2021-04-30.
In the above embodiment, the service data accumulatively stored in the first accumulated service data set and the second accumulated service data set may be stored in different partitions respectively. In this embodiment, after the first accumulated service data set is emptied, the first incremental service data is added to the service data set, so that the storage space of the service data can be saved. Or the first incremental service data is added into the newly-built second service data set, service data in different periods can be accumulated and stored in different service data sets, and different service data sets are stored in different partitions, so that the aim of separately storing service data in different periods can be fulfilled, and the management of the service data in different periods is facilitated.
Optionally, the method further comprises: updating the first cycle configuration table to a second cycle configuration table in response to a cycle configuration instruction, wherein a first group of cycles is configured in the first cycle configuration table, a second group of cycles is configured in the second cycle configuration table, each of the first group of cycles and the second group of cycles corresponds to a start date and an end date, and cycles in the first group of cycles and cycles in the second group of cycles are different or partially the same.
As an optional embodiment, the cycles in the first cycle configuration table may be updated, the start date and the end date of the cycles may be modified, a new cycle may be added to the first cycle configuration table, and the cycles in the first cycle configuration table may be deleted. Next, a modification is made to the cycle start date and the cycle end date in the first cycle arrangement table shown in table 1, and a second cycle table is shown in table 2.
Figure 103695DEST_PATH_IMAGE002
As shown in Table 2, the end date of 202101 cycle in Table 1 was modified to 2021-02-01, resulting in cycle 202103. The start date of period 202102 in Table 1 was modified to 2021-02-02 and the end date was modified to 2021-03-01, resulting in period 202104. In the embodiment, the scheduling period of the task can be modified by modifying the period table, the period of the scheduling task can be modified without modifying the script file, and the flexibility of task scheduling can be improved by flexibly modifying the period table.
Optionally, the method further comprises: acquiring second incremental business data generated on a second date of the current position by executing a second scheduling task; determining a third period in the second period configuration table in which the second date is located, wherein the third period is a period from a second start date to a second end date; adding the second incremental business data to a third accumulated business data set under the condition that the third accumulated business data set corresponding to a fourth period in the second period configuration table is obtained and the third period and the fourth period are the same period; and under the condition that the third accumulated service data set is acquired and the third period and the fourth period are not the same, adding the second incremental service data into an empty fourth accumulated service data set.
As an alternative embodiment, executing the second scheduled task may call up business data in the data repository, with the second date being the date the second scheduled task was executed. The business data generated on the second date in the data warehouse is second incremental business data. For example, the first date is 2021 year 2 month 1 day, and in the case where the second scheduling task is executed on 2 month 1 day, the data bit generated on the day of 2 month 1 day is the second incremental business data.
Taking the second period configuration table shown in table 2 as an example, assuming that 2021-02-01 executes the second scheduling task, the traffic data generated on the day 2021-02-01 is the second incremental traffic data, and it can be determined that 2021-02-01 is located in 202103 periods formed by the start date 2021-01-01 and the end date 2021-02-01 by looking up the second period table. 202103 the business data 2021-01-01 to 2021-01-31 have been stored accumulatively in the third accumulated business data set corresponding to the period, 2021-02-01 may be added to the third accumulated business data set, and thus 2021-01-01 to 2021-02-01 may be stored accumulatively in the third accumulated business data set.
Taking 2021-02-02 as an example to execute the second scheduling task, the service data generated on the day 2021-02-02 is the second incremental service data, and it can be determined 2021-02-02 is located in 202104 period formed by the start date 2021-02-02 and the end date 2021-03-01 by looking up the second period table. And the third cumulative service data set stores service data in 202103 cycles, 202103 and 202104 are not in the same cycle, and at this time, an empty fourth cumulative service data set may be created, the second incremental service data generated on the day 2021-02-02 may be added to the fourth cumulative service data set, and the service data generated on the days 2021-02-02 to 2021-03-01 may be cumulatively stored in the fourth cumulative service data set.
In the embodiment, the scheduling period of the task can be updated by updating the period configuration table, and the script file is not required to be modified, so that the flexibility of scheduling the task is improved.
Optionally, the method further comprises: after the first incremental business data is added into the first accumulated business data set, responding to a first display instruction, and displaying the first accumulated business data set on a first target interface; after the first incremental business data is added to the empty second accumulated business data set, responding to a second display instruction, displaying the second accumulated business data set on a second target interface, or responding to a third display instruction, displaying the first accumulated business data set and the second accumulated business data set on a third target interface.
As an optional implementation manner, after the increment data generated every day is accumulated, the accumulated data can be called and displayed, and a developer can more intuitively know the condition of the business data through interface display, so that a basis is provided for further decision making. Specifically, business data of any task invocation date can be displayed. Taking the periodic configuration table shown in table 1 as an example, if the service data is called at 2021-01-05, the service data generated at 2021-01-01 to 2021-01-05 may be displayed, and if the service data is called at 2021-03-03, only the service data generated at 2021-03-01 to 2021-03-03 may be displayed, or the service data generated at 2021-01-01 to 2021-02-28 and the service data generated at 2021-03-03 may be displayed at the same time. In this embodiment, by displaying the service data scheduled by the task, a more intuitive effect of service data statistics can be achieved.
Optionally, the method further comprises: after the first incremental business data is added into the first accumulated business data set, performing a first clustering operation on the business data in the first accumulated business data set to obtain a first clustering result, wherein the business data in the first accumulated business data set is used for representing the number of times of a first interactive operation performed on media resources shown in a target application on the second period; and adjusting the media resources displayed in the target application according to the first clustering result.
As an optional implementation manner, the business data in the first accumulated business data set may be clustered, and the clustering result may be used to represent the interactive operation condition of the user on the media resource, for example, the interactive operation of praise, comment, and the like. Taking the short video media resource in the short video client as an example, the first accumulated service data reflects the watching condition of the short video by the user, and may be clustered according to the types of the short video on which the user performs operations such as approval, comment, and the like, and the clustering result may be used to represent the type of the short video that the user likes to watch, and further may recommend the short video of the relevant type to the user according to the user's preference. In this embodiment, by aggregating the accumulated service data and adjusting the media resources according to the aggregation information, the rationality of resource allocation can be improved, and the technical effect of user experience can be improved.
Optionally, the adjusting, according to the first clustering result, the media resource displayed on the fourth target interface includes: under the condition that the first clustering result indicates that the interactive operation times on the media resources of the first type are greater than or equal to a first threshold value, the display times of the media resources of the first type are adjusted to a first preset value by the target application; and when the first clustering result indicates that the number of times of the interactive operation on the second type of media resources is smaller than the first threshold value, adjusting the number of times of the display of the second type of media resources to a second preset value in the target application, wherein the second preset value is smaller than the first preset value.
As an optional implementation manner, taking a media resource as a short video as an example, if the user approves and reviews a certain type of short video, the user is considered to prefer to watch the type of short video, the playing frequency of the type of short video may be increased, and the playing frequency of the type of short video may be adjusted to a first preset value, where the first preset value may be determined according to an actual situation, for example, 100, 50, and the like. Conversely, if the user's praise and comment operations on a certain type of short video are smaller than the preset threshold, the user is considered to dislike watching the type of short video, the playing times of the type of short video can be reduced, and the playing times of the type of short video is adjusted to a second preset value, which can be determined according to actual situations, for example, 10, 20, and the like. In this embodiment, the media resource may be adjusted according to the clustering result of the service data in the accumulated service data set, so as to better meet the user's requirement and improve the user's stickiness.
Optionally, the method further comprises: after the first incremental business data is added into the empty second accumulated business data set, performing a second clustering operation on the business data in the second accumulated business data set to obtain a second clustering result, wherein the business data in the second accumulated business data set is used for representing the number of times of the second interactive operation performed on the media resource displayed in the target application in the first period; and adjusting the media resources displayed in the target application according to the second clustering result.
As an optional implementation, the service data in the second accumulated service data set may be clustered, and the clustering result may be used to indicate the user's interaction with the media resource, for example, the duration of watching a short video. Taking the short video media resource in the short video client as an example, the second accumulated service data reflects the watching condition of the short video by the user, and can be clustered according to the duration of the short video type watched by the user, and the clustering result can be used for representing the short video type that the user likes to watch, and further can recommend the short video of the relevant type to the user according to the user's preference. In this embodiment, by aggregating the second accumulated service data and adjusting the media resources according to the aggregation information, the rationality of resource allocation can be improved, and the technical effect of user experience can be improved.
Optionally, the adjusting, according to the second clustering result, the media resource displayed in the target application includes: under the condition that the second clustering result shows that the interactive operation time length of the media resources of the third type is greater than or equal to a second threshold value, the display times of the media resources of the third type are adjusted to a third preset value by the target application; and when the second clustering result indicates that the interactive operation time length on the media resource of the fourth type is smaller than the second threshold, adjusting the display times of the media resource of the fourth type to a fourth preset value in the target application, wherein the fourth threshold is smaller than the third threshold.
As an optional implementation manner, taking the media resource as a short video as an example, if the watching duration of a certain type of short video by the user is greater than a preset threshold, it is considered that the user likes to watch the type of short video, the playing frequency of the type of short video may be increased, and the playing frequency of the type of short video is adjusted to a third preset value, where the third preset value may be determined according to an actual situation, for example, 80, 60, and the like. Conversely, if the viewing duration of a certain type of short video by the user is less than the preset threshold, the user is considered to dislike viewing the short video of the type, the playing times of the short video of the type may be reduced, and the playing times of the short video of the type may be adjusted to a fourth preset value, which may be determined according to actual situations, for example, 20, 30, and the like. In this embodiment, the media resource may be adjusted according to the clustering result of the service data in the accumulated service data set, so as to better meet the user's requirement and improve the user's stickiness.
The present disclosure is described below by a specific embodiment, and as shown in fig. 3, is an overall flow diagram according to an exemplary embodiment, wherein the method includes the following steps:
step S31, determining a first date for executing the first scheduling task, and acquiring first incremental business data generated by the first date;
in step S32, a unique one of the cycles that matches the first date, i.e., the first cycle, is found in the first group of cycles configured in the first cycle table, where the first date is located within the first cycle. The second period in the first period configuration table corresponds to the first accumulated service data set.
Step S33, determining whether the first period and the second period are the same period, and if so, adding the first incremental service data to the first cumulative service data set. If not, a second empty accumulated service data set is newly established, and the first incremental service data is added to the second accumulated service data set.
According to the method and the device, the scheduling period of the task can be adjusted by updating the period configuration table, the script file does not need to be modified, and the flexibility of changing the scheduling period of the task is improved.
Fig. 4 is a block diagram illustrating a traffic data processing apparatus according to an example embodiment. Referring to fig. 4, the apparatus includes: an obtaining unit 41 configured to perform obtaining of first incremental business data generated on a first date at which the current is located by executing a first scheduling task; a determination unit 42 configured to perform determination of a first cycle in which the first date is located in a preset first cycle configuration table, wherein the first cycle is a cycle from a first start date to a first end date; a first processing unit 43, configured to add the first incremental service data to a first aggregate service data set when a first aggregate service data set corresponding to a second period in the first period configuration table is acquired and the first period and the second period are the same period; a second processing unit 44 configured to add the first incremental traffic data to an empty second cumulative traffic data set when the first cumulative traffic data set is acquired and the first period and the second period are not the same period.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 5 is a block diagram illustrating an electronic device for processing of business data in accordance with an exemplary embodiment. As shown in fig. 5, the electronic device includes a processor 520 and a memory 510 for storing processor-executable instructions as described above. The processor is configured to execute the instructions to implement the service data processing method. The electronic device in this embodiment may further include a transmission device 530, a display 540, and a connection bus 550. The transmission device 530 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 530 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices so as to communicate with the internet or a local area Network. In one example, the transmission device 530 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner. The display 540 is used for displaying media resources; the connection bus 550 is used for connecting the module components in the electronic device.
In an exemplary embodiment, a storage medium comprising instructions, such as the memory 510 comprising instructions, executable by the processor 520 of the electronic device to perform the above-described method is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, which includes a computer program/instruction, and the computer program/instruction realizes the above-mentioned service data processing method when being executed by a processor.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements 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 (10)

1. A method for processing service data is characterized by comprising the following steps:
acquiring first incremental business data generated on a current first date by executing a first scheduling task;
determining a first period where the first date is located in a preset first period configuration table, wherein the first period is a period from a first starting date to a first ending date;
adding the first incremental business data to a first accumulated business data set under the condition that the first accumulated business data set corresponding to a second period in the first period configuration table is obtained and the first period and the second period are the same period;
and adding the first incremental business data to an empty second cumulative business data set under the condition that the first cumulative business data set is acquired and the first period and the second period are not the same.
2. The method of claim 1, wherein adding the first incremental traffic data to an empty second aggregate traffic data set comprises:
emptying the first accumulated service data set to obtain a second accumulated service data set; adding the first incremental business data to the second cumulative business data set; or
Creating an empty second cumulative service data set; and adding the first incremental business data to the second cumulative business data set.
3. The method of claim 1, further comprising:
updating the first cycle configuration table to a second cycle configuration table in response to a cycle configuration instruction, wherein a first group of cycles is configured in the first cycle configuration table, a second group of cycles is configured in the second cycle configuration table, each of the first group of cycles and the second group of cycles corresponds to a start date and an end date, and cycles in the first group of cycles and cycles in the second group of cycles are different or partially the same.
4. The method of claim 3, further comprising:
acquiring second incremental business data generated on a second date of the current position by executing a second scheduling task;
determining a third period in the second period configuration table in which the second date is located, wherein the third period is a period from a second start date to a second end date;
adding the second incremental business data to a third accumulated business data set under the condition that the third accumulated business data set corresponding to a fourth period in the second period configuration table is obtained and the third period and the fourth period are the same period;
and under the condition that the third accumulated service data set is acquired and the third period and the fourth period are not the same, adding the second incremental service data into an empty fourth accumulated service data set.
5. The method according to any one of claims 1 to 4, further comprising:
after the first incremental business data is added into the first accumulated business data set, responding to a first display instruction, and displaying the first accumulated business data set on a first target interface;
after the first incremental business data is added to the empty second accumulated business data set, responding to a second display instruction, displaying the second accumulated business data set on a second target interface, or responding to a third display instruction, displaying the first accumulated business data set and the second accumulated business data set on a third target interface.
6. The method according to any one of claims 1 to 4, further comprising:
after the first incremental business data is added into the first accumulated business data set, performing a first clustering operation on the business data in the first accumulated business data set to obtain a first clustering result, wherein the business data in the first accumulated business data set is used for representing the number of times of a first interactive operation performed on media resources shown in a target application on the second period; and adjusting the media resources displayed in the target application according to the first clustering result.
7. The method of claim 6, wherein the adjusting the media resources presented in the target application according to the first clustering result comprises:
under the condition that the first clustering result indicates that the interactive operation times on the media resources of the first type are greater than or equal to a first threshold value, the display times of the media resources of the first type are adjusted to a first preset value by the target application;
and when the first clustering result indicates that the number of times of the interactive operation on the second type of media resources is smaller than the first threshold value, adjusting the number of times of the display of the second type of media resources to a second preset value in the target application, wherein the second preset value is smaller than the first preset value.
8. A device for processing service data, comprising:
the acquiring unit is configured to execute the acquisition of first incremental business data generated on a first date where the first scheduling task is currently located by executing the first scheduling task;
a determination unit configured to perform determination of a first period in which the first date is located in a preset first period configuration table, wherein the first period is a period from a first start date to a first end date;
a first processing unit, configured to add the first incremental service data to a first aggregate service data set when a first aggregate service data set corresponding to a second period in the first period configuration table is acquired and the first period and the second period are the same period;
and the second processing unit is configured to add the first incremental business data to an empty second accumulated business data set under the condition that the first accumulated business data set is acquired and the first period and the second period are not the same.
9. A computer-readable storage medium, whose instructions, when executed by a processor of a processing server of business data, enable the processing server of business data to perform the processing method of business data according to any one of claims 1 to 7.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the method of processing traffic data of any of claims 1-7 when executed by a processor.
CN202110889019.6A 2021-08-04 2021-08-04 Service data processing method and device Pending CN113326397A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110889019.6A CN113326397A (en) 2021-08-04 2021-08-04 Service data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110889019.6A CN113326397A (en) 2021-08-04 2021-08-04 Service data processing method and device

Publications (1)

Publication Number Publication Date
CN113326397A true CN113326397A (en) 2021-08-31

Family

ID=77427031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110889019.6A Pending CN113326397A (en) 2021-08-04 2021-08-04 Service data processing method and device

Country Status (1)

Country Link
CN (1) CN113326397A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116775667A (en) * 2023-08-28 2023-09-19 中国邮电器材集团有限公司 Associated data processing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216821A (en) * 2007-01-05 2008-07-09 中兴通讯股份有限公司 Data acquisition system storage management method
CN102141963A (en) * 2010-01-28 2011-08-03 阿里巴巴集团控股有限公司 Method and equipment for analyzing data
CN105446990A (en) * 2014-07-04 2016-03-30 阿里巴巴集团控股有限公司 Service data processing method and equipment
CN107153702A (en) * 2017-05-10 2017-09-12 北京微影时代科技有限公司 A kind of data processing method and device
CN108287810A (en) * 2018-01-22 2018-07-17 平安科技(深圳)有限公司 A kind of business datum display methods, device, equipment and storage medium
CN110502545A (en) * 2019-08-15 2019-11-26 中国平安财产保险股份有限公司 Date storage method, device, equipment and computer readable storage medium
CN111198853A (en) * 2018-11-16 2020-05-26 北京微播视界科技有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN112131297A (en) * 2020-09-28 2020-12-25 广州亚信技术有限公司 Data processing method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216821A (en) * 2007-01-05 2008-07-09 中兴通讯股份有限公司 Data acquisition system storage management method
CN102141963A (en) * 2010-01-28 2011-08-03 阿里巴巴集团控股有限公司 Method and equipment for analyzing data
CN105446990A (en) * 2014-07-04 2016-03-30 阿里巴巴集团控股有限公司 Service data processing method and equipment
CN107153702A (en) * 2017-05-10 2017-09-12 北京微影时代科技有限公司 A kind of data processing method and device
CN108287810A (en) * 2018-01-22 2018-07-17 平安科技(深圳)有限公司 A kind of business datum display methods, device, equipment and storage medium
CN111198853A (en) * 2018-11-16 2020-05-26 北京微播视界科技有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN110502545A (en) * 2019-08-15 2019-11-26 中国平安财产保险股份有限公司 Date storage method, device, equipment and computer readable storage medium
CN112131297A (en) * 2020-09-28 2020-12-25 广州亚信技术有限公司 Data processing method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116775667A (en) * 2023-08-28 2023-09-19 中国邮电器材集团有限公司 Associated data processing method and device
CN116775667B (en) * 2023-08-28 2023-12-22 中国邮电器材集团有限公司 Associated data processing method and device

Similar Documents

Publication Publication Date Title
US10712915B2 (en) Information presentation using a client on a terminal
CN110546606A (en) Tenant upgrade analysis
CN110659121B (en) Task data acquisition method and device, task configuration method and device and server
JP2020173778A (en) Method, apparatus, electronic facility, computer readable medium, and computer program for allocating resource
US10735537B2 (en) Information pushing
JP2007522547A (en) System and method for providing extended computing power
CN113094136A (en) Page display control method and device, storage medium and electronic equipment
CN108390933B (en) Message distribution method, device, server and storage medium
EP4068118A1 (en) Information pushing system, method and apparatus, device and storage medium
CN102857559A (en) Method and system for recommending software, and client end
US9357020B2 (en) Information source selection system, information source selection method, and program
CN113014681A (en) Network card binding method and device of multi-network card server, electronic equipment and storage medium
CN108700928A (en) Content is managed based on battery utilization rate when showing content on device
CN105930249B (en) Using monitoring method and device
CN111193792A (en) Message transmission method and device, electronic equipment and storage medium
CN111464826B (en) List updating method and device for virtual resources, electronic equipment and storage medium
CN113326397A (en) Service data processing method and device
CN108600780B (en) Method for pushing information, electronic device and computer readable medium
CN108270807A (en) A kind of data transmission method and device
CN111464618B (en) Message pushing method, device, equipment and storage medium
CN110647634A (en) Method and device for searching media resource, storage medium and electronic device
CN112311818B (en) Method, device, terminal and storage medium for downloading applet data packet
CN112169312A (en) Queuing scheduling method, device, equipment and storage medium for cloud game service
CN110401709A (en) Processing method, device and the storage medium of session in a kind of instant messaging application
CN109816450A (en) A kind of content promotion method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210831

RJ01 Rejection of invention patent application after publication