Data analysis method and device, storage medium and electronic equipment

By updating the data analysis results of the business model associated with the target pheromone when a data analysis request is received, the problem of user waiting caused by the large amount of computation in big data analysis is solved, thus improving data analysis efficiency and user experience.

CN115878692BActive Publication Date: 2026-02-06NEUSOFT CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211644803.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-20
Publication Date
2026-02-06
Estimated Expiration
2042-12-20

AI Technical Summary

Technical Problem

When dealing with large amounts of data, user-initiated data analysis requests may take a long time to obtain results, resulting in a poor user experience.

Method used

Upon receiving a data analysis request, in response to changes in the target pheromone data, the data analysis results of the pre-saved first business model are updated. Calculations are performed only on the first business model that includes the target pheromone, and the updated results are output, without updating the results of the second business model that does not include the target pheromone.

Benefits of technology

It reduces the computational load of data analysis, improves data analysis efficiency, avoids redundant calculations in business models, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115878692B_ABST
    Figure CN115878692B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data analysis method, device, storage medium and electronic equipment, so as to reduce the calculation amount of data analysis request and improve the data analysis efficiency. The method comprises: receiving a data analysis request; in response to the data analysis request, updating the data analysis result of a pre-stored first business model according to the changed data corresponding to the target pheromone, to obtain the updated data analysis result corresponding to the first business model, the target pheromone being the pheromone recording the data change in response to the business data change, the first business model being a business model including the target pheromone, and the business data change including changing the data in part of the pheromones; and outputting at least the updated data analysis result corresponding to the first business model.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer software, and in particular, to a data analysis method and device, a storage medium and an electronic device. BACKGROUND

[0002] Data analysis refers to a process of analyzing a large amount of collected business data by using appropriate statistical analysis methods, so as to extract useful information from complex data and form conclusions. In actual application scenarios, summarizing and researching business data through data analysis can help people more intuitively understand the state of the business, so as to make reasonable judgments and decisions.

[0003] In related technologies, when the data volume is large, the data analysis request initiated by the user often needs to wait for a long time to obtain the data analysis result, resulting in poor user experience. SUMMARY

[0004] The purpose of the present disclosure is to provide a data analysis method, device, storage medium and electronic device to reduce the computational complexity of data analysis and improve the efficiency of data analysis.

[0005] To achieve the above purpose, in a first aspect, the present disclosure provides a data analysis method, comprising:

[0006] receiving a data analysis request;

[0007] updating, in response to the data analysis request, a data analysis result of a first business model pre-stored according to changed data corresponding to a target pheromone, to obtain an updated data analysis result corresponding to the first business model, the target pheromone being a pheromone recording data change in response to business data change, the pheromone representing a field in a data table required for determining a data analysis result corresponding to a business model, the first business model being a business model associated with the target pheromone, and the business data change including changing data in part of the pheromones;

[0008] outputting the updated data analysis result corresponding to the first business model.

[0009] Optionally, the at least outputting the updated data analysis result corresponding to the first business model comprises:

[0010] outputting the updated data analysis result corresponding to the first business model and a data analysis result corresponding to a second business model pre-stored, the second business model being a business model not associated with the target pheromone.

[0011] Optionally, the method further comprises:

[0012] injecting a burying point program in the code corresponding to each business unit;

[0013] in response to the code corresponding to a target business unit being executed, triggering the burying point program being called, the target business unit being any one of the business units;

[0014] in response to the burying point program being called, determining a target pheromone anchor point associated with address information of the burying point program based on an association relationship between the address information of the burying point program and the pheromone anchor point;

[0015] based on an association relationship between the pheromone anchor point and the pheromone, marking data variation of the pheromone associated with the target pheromone anchor point to obtain the target pheromone.

[0016] Optionally, the method further comprises:

[0017] constructing a pheromone anchor point;

[0018] obtaining address information of the burying point program;

[0019] associating the address information of the burying point program with the pheromone anchor point.

[0020] Optionally, the method further comprises:

[0021] based on a first preset association relationship between the pheromone and an abstract business model, marking data variation of the abstract business model associated with the target pheromone to obtain a target abstract business model, one abstract business model including a state marking bit and a data table of one business dimension of a business model;

[0022] in response to the data analysis request, updating a data analysis result of a first business model pre-stored according to the data after variation of the target pheromone to obtain an updated data analysis result corresponding to the first business model, including:

[0023] in response to the data analysis request, determining the first business model associated with the target abstract business model based on a second preset association relationship between the abstract business model and the business model;

[0024] updating the data analysis result of the first business model pre-stored according to the data after variation of the target pheromone to obtain the updated data analysis result corresponding to the first business model.

[0025] Optionally, the method further comprises:

[0026] obtaining each business model;

[0027] According to each of the business models, data is split according to a business dimension, to obtain a data table corresponding to each business dimension of the business model;

[0028] A state flag is added to each data table, to obtain each abstract business model associated with the business model;

[0029] The data table corresponding to each business dimension is split according to a field, to obtain the field included in each data table;

[0030] For any one of the data tables, an association relationship between pheromone and abstract business model is established based on the abstract business model corresponding to the data table and the field included in the data table.

[0031] Optionally, the method further comprises:

[0032] Each business model is initialized and run, and the data analysis result obtained by initializing and running each business model is stored.

[0033] Optionally, the data analysis result of the first business model is updated according to the changed data corresponding to the target pheromone, to obtain the updated data analysis result corresponding to the first business model, comprising:

[0034] Each pheromone included in the first business model is obtained, the pheromones including the target pheromone and the pheromone not having data change;

[0035] The changed data corresponding to the target pheromone is obtained;

[0036] According to the changed data corresponding to the target pheromone and the data corresponding to the pheromone not having data change, the updated data analysis result of the first business model is determined.

[0037] In a second aspect, the present disclosure provides a data analysis device, comprising:

[0038] The receiving module is configured to receive a data analysis request;

[0039] The updating module is configured to update the data analysis result of the first business model according to the changed data corresponding to the target pheromone in response to the data analysis request, to obtain the updated data analysis result corresponding to the first business model, the target pheromone being the pheromone having data change recorded in response to business data change, the pheromone representing the field in the data table required for determining the data analysis result corresponding to the business model, and the first business model being the business model including the target pheromone;

[0040] an output module configured to output the updated data analysis result corresponding to the first business model and the pre-stored data analysis result corresponding to the second business model, the second business model being a business model that does not include the target pheromone.

[0041] In a third aspect, the present disclosure provides a non-transitory computer-readable storage medium having stored thereon a computer program, which, when executed by a processor, implements the steps of the method of any one of the first aspect.

[0042] In a fourth aspect, the present disclosure provides an electronic device, comprising:

[0043] a memory having stored thereon a computer program;

[0044] a processor configured to execute the computer program in the memory to implement the steps of the method of any one of the first aspect.

[0045] With the above technical solution, after receiving the data analysis request, the data analysis result of the pre-stored first business model can be updated according to the changed data corresponding to the target pheromone in response to the data analysis request, to obtain the updated data analysis result corresponding to the first business model, and then at least the updated data analysis result corresponding to the first business model can be output. Since the calculation of the data analysis result is only performed for the first business model including the target pheromone when responding to the data analysis request, and for the second business model not including the target pheromone, the data analysis result remains unchanged and no data update is performed, considering that there is no business data change, this method can avoid redundant calculation of the business model, reduce the calculation amount of the data analysis request, and improve the data analysis efficiency.

[0046] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF DRAWINGS

[0047] The accompanying drawings are included to provide a further understanding of the present disclosure and constitute a part of the specification, which together with the following detailed description, serve to explain the present disclosure. In the drawings:

[0048] Figure 1 is a flowchart of a data analysis method according to an exemplary embodiment of the present disclosure;

[0049] Figure 2 is a schematic diagram of a mesh relationship constructed according to an association relationship according to an exemplary embodiment of the present disclosure;

[0050] Figure 3 is a block diagram of a data analysis device according to an exemplary embodiment of the present disclosure;

[0051] Figure 4 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0052] The specific embodiments of the present disclosure will be described below in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely intended to illustrate and explain the present disclosure, and are not intended to limit the present disclosure.

[0053] It should be understood that each step described in the method embodiments of the present disclosure can be performed in different orders and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0054] The names of the messages or information exchanged between the devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of the messages or information.

[0055] It can be understood that, before using the technical solutions disclosed in the embodiments of the present disclosure, the type, use range, use scenario, etc. of the personal information involved in the present disclosure should be informed to the user and the authorization of the user should be obtained in a proper manner according to relevant laws and regulations.

[0056] It can be understood that the data involved in the present technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of relevant laws and regulations and relevant provisions.

[0057] Please refer to Figure 1 , Figure 1 is a flowchart of a data analysis method according to an exemplary embodiment of the present disclosure. As Figure 1 shown, the data analysis method includes:

[0058] S110, receiving a data analysis request.

[0059] In the embodiments of the present disclosure, the user side can initiate a data analysis request to the server through the client, so that the server can receive the data analysis request initiated by the client.

[0060] In an exemplary scenario, when the user wants to watch the data analysis statistical interface, the user can click to enter the statistical analysis interface. In this case, the user can initiate a data analysis request through the client.

[0061] In another exemplary scenario, after the user enters the analysis statistical interface, the user can refresh the displayed analysis statistical interface. In this case, the user can initiate a data analysis request through the client.

[0062] In yet another exemplary scenario, the data analysis request can also be initiated automatically by the client at a set time interval.

[0063] S120, in response to the data analysis request, updating the data analysis result of the first business model pre-stored according to the changed data corresponding to the target pheromone, to obtain an updated data analysis result corresponding to the first business model, the target pheromone being a pheromone recorded in response to a business data change, indicating that the data has changed, the pheromone representing a field in a data table required to determine the data analysis result corresponding to the business model, the first business model being a business model associated with the target pheromone, the business data change including changing data in part of the pheromones.

[0064] The business model can be understood as a modular tool for determining data analysis results in a business scenario. For example, in the company case exhibition business scenario, the data analysis result of employee information analysis can correspond to a business model, the data analysis result of equipment statistical information can also correspond to a business model, and the data analysis result of external cooperation unit information can also correspond to a business model.

[0065] It can be understood that when the server applies the business model to perform data analysis, it can analyze and count according to the data of one or more fields in the data table. Therefore, in the embodiments of the present disclosure, the pheromone can represent a field in the data table required to determine the data analysis result corresponding to the business model, so that a business model can include one or more pheromones for calculating the data analysis result.

[0066] Following the foregoing example, for the business model corresponding to the data analysis result of employee information analysis, the pheromones included in the business model may, for example, be the 9 fields of employee name, basic salary, performance salary, total salary to be paid, total salary actually paid, position, tardiness, normal attendance, and early departure.

[0067] Considering that when the business model calculates the data analysis result according to the pheromones, if the pheromones do not change in data, the calculated data analysis result is unchanged. Therefore, in the embodiments of the present disclosure, when the server receives the data analysis request and responds, the server can obtain the recorded pheromones that have changed in data, i.e., the target pheromones, and further obtain the changed data corresponding to the target pheromones. Then, the first business model including the target pheromones can be calculated for the data analysis result according to the changed data, and the calculated data analysis result can be used to replace the data analysis result of the first business model pre-stored.

[0068] Further, it should be noted that the number of first business models including the target pheromone can be one or more. Exemplarily, for the field of employee salary, there can be a business model for analyzing the average salary of employees, and there can also be a business model for analyzing the distribution range of employee salary levels.

[0069] S130, output at least the updated data analysis result corresponding to the first business model.

[0070] It can be understood that data changes are a process according to actual business, and therefore, the target pheromone that occurs data changes is uncertain. When the business data is changed, there can be a case where data in some of all pheromones is changed, and there can also be a case where data in all pheromones is changed.

[0071] In the embodiments of the present disclosure, in the case where the business data change is to change data in some of all pheromones, the data analysis result of the first business model including the target pheromone needs to be updated, and the data analysis result of the second business model not including the target pheromone does not need to be updated. Therefore, after the data analysis result of the first business model is updated according to the changed data corresponding to the target pheromone, the updated data analysis result corresponding to the first business model is obtained, and at least the updated data analysis result corresponding to the first business model is output.

[0072] In some embodiments, at least outputting the updated data analysis result corresponding to the first business model can include the following steps:

[0073] Output the updated data analysis result corresponding to the first business model.

[0074] In the embodiments of the present disclosure, considering that the client side can have pre-received and stored the data analysis result corresponding to the second business model, therefore, after the data analysis result of the first business model is updated, the server can only output the updated data analysis result corresponding to the first business model, so that all data analysis results including the first business model and the second business model can also be displayed completely on the client side.

[0075] In other embodiments, at least outputting the updated data analysis result corresponding to the first business model can include the following steps:

[0076] Output the updated data analysis result corresponding to the first business model and the pre-stored data analysis result corresponding to the second business model, the second business model being a business model not associated with the target pheromone.

[0077] In the embodiments of the present disclosure, after updating the data analysis result of the first business model, the server can also output the updated data analysis result corresponding to the first business model and the pre-stored data analysis result corresponding to the second business model, so that all data analysis results including the first business model and the second business model can be displayed completely on the client side.

[0078] In addition, when the business data is changed to all data in all pheromones, all business models in the business scenario are the first business model, at this time, the data analysis results of all business models are updated, and the updated data analysis results corresponding to all business models are output.

[0079] In some embodiments, the output can be rendered to the user side in a visual form. For example, directly rendered and displayed in the client interface on the user side. In this case, the server can return at least the updated data analysis result corresponding to the first business model to the client that initiates the analysis request, so that the rendering and display are performed in the client interface that initiates the analysis request.

[0080] With the above method, after receiving the data analysis request, the data analysis result of the pre-stored first business model can be updated according to the changed data corresponding to the target pheromone in response to the data analysis request, to obtain the updated data analysis result corresponding to the first business model, and then at least the updated data analysis result corresponding to the first business model can be output. Since the data analysis result is calculated only for the first business model including the target pheromone when responding to the data analysis request, and the second business model does not include the target pheromone, and considering that there is no business data change, the data analysis result remains unchanged and does not need to be updated. This method can avoid redundant calculation of business models, reduce the calculation amount of data analysis requests, and improve data analysis efficiency.

[0081] In some embodiments, the data analysis method of the embodiments of the present disclosure can further include the following steps:

[0082] Injecting a buried point program in the code corresponding to each business unit;

[0083] In response to the code corresponding to the target business unit being executed, triggering the buried point program to be called, and the target business unit being any one of the business units;

[0084] In response to the buried point program being called, determining the target pheromone anchor associated with the address information of the buried point program based on the association relationship between the address information of the buried point program and the pheromone anchor;

[0085] Based on the association relationship between the pheromone anchor point and the pheromone, the data of the pheromone associated with the target pheromone anchor point is marked to obtain the target pheromone.

[0086] The business unit can be understood as a module for implementing various functions in a business scenario, for example, a salary adjustment module, an employee onboarding and offboarding management module, etc. can be regarded as a business unit respectively.

[0087] The pheromone anchor point can be understood as a pheromone link, that is, through a pheromone anchor point, the corresponding pheromone can be associated. It should be noted that one pheromone anchor point can be associated with one or more pheromones, which is configured according to the actual business scenario.

[0088] Considering that operations in various business units can cause data in the corresponding fields in the data table to change, therefore, in order to record the target pheromone that has changed in time, so as to facilitate subsequent reception of a data analysis request, the data analysis result of the pre-saved first business model can be updated according to the changed data corresponding to the target pheromone, in the embodiment of the present disclosure, a buried point program can be injected into the code corresponding to each business unit, and an information anchor point is associated with the address information of each buried point program, and the corresponding pheromone is further associated with each pheromone anchor point. In this way, when the code corresponding to any business unit is executed and causes the business data to change, the buried point program in the code can be triggered in real time, and after the buried point program is called, the address information of the triggered buried point program can be obtained, so that the address information of the buried point program and the association relationship between the pheromone anchor point can be further determined. The address information of the triggered buried point program is associated with the pheromone anchor point, that is, the target pheromone anchor point can be sensed in real time when the business data changes, so that based on the association relationship between the pheromone anchor point and the pheromone, the data of the pheromone associated with the target pheromone anchor point is marked, and the marked pheromone is determined as the target pheromone.

[0089] In some embodiments, in order to be able to respond to the call of the buried point, based on the association relationship between the address information of the buried point program and the pheromone anchor point, the target pheromone anchor point associated with the address information of the buried point program can be determined, the data analysis method of the present disclosure can further include the following steps:

[0090] Constructing a pheromone anchor point;

[0091] Obtaining the address information of the buried point program;

[0092] Associating the address information of the buried point program with the pheromone anchor point.

[0093] In the embodiments of the present disclosure, the pheromone anchor points can be constructed first, and address information of each buried point program can be obtained, then the address information of the buried point program can be synchronously associated with the pheromone anchor points, so that after the buried point program is triggered, the associated target pheromone anchor point can be determined according to the address information of the triggered buried point.

[0094] Optionally, the address information of the buried point program can be a hash address corresponding to the buried point program.

[0095] In some embodiments, the association relationship between the pheromone anchor points and the pheromones can be established according to actual business conditions. For example, which pheromone anchor points are associated with a business unit, and when the buried point program injected in the code corresponding to the business unit is triggered, the target pheromone anchor points associated with the address information of the buried point program are associated with which pheromone anchor points. That is, the association relationship between the pheromone anchor points associated with the business unit and the target pheromone anchor points associated with the address information of the buried point program injected in the code of the business unit can be established.

[0096] In some embodiments, the data analysis method of the embodiments of the present disclosure can further include the following steps:

[0097] Based on the first preset association relationship between the pheromones and the abstract business models, the abstract business model associated with the target pheromone is marked for data change to obtain a target abstract business model, and one abstract business model includes a state marking bit and a data table of one business dimension of the business model.

[0098] In this case, in response to a data analysis request, the data analysis result of the first business model pre-stored is updated according to the changed data corresponding to the target pheromone to obtain an updated data analysis result corresponding to the first business model, including:

[0099] In response to a data analysis request, based on the second preset association relationship between the abstract business models and the business models, the first business model associated with the target abstract business model is determined.

[0100] According to the changed data corresponding to the target pheromone, the data analysis result of the first business model pre-stored is updated to obtain an updated data analysis result corresponding to the first business model.

[0101] In the embodiments of the present disclosure, in order to be able to update the data analysis result of the pre-stored first business model according to the changed data corresponding to the target pheromone in response to the data analysis request, the updated data analysis result corresponding to the first business model is obtained, before receiving the data analysis request initiated by the client, each target pheromone can be recorded, and the abstract business model associated with the target pheromone is marked for data change based on the first preset association relationship between the pheromone and the abstract business model, to obtain the target abstract business model. Then, after receiving the data analysis request initiated by the client, in response to the data analysis request, the first business model associated with the target abstract business model is determined based on the second preset association relationship between the abstract business model and the business model, and then the data analysis result of the pre-stored first business model can be updated according to the changed data corresponding to the target pheromone, to obtain the updated data analysis result corresponding to the first business model.

[0102] In some embodiments, in order to obtain the association relationship between the pheromone and the abstract business model and the association relationship between the abstract business model and the business model, the data analysis method of the present disclosure can further include the following steps:

[0103] Obtaining each business model;

[0104] For each of the business models, data is split according to the business dimension to obtain data tables corresponding to the business model in each business dimension;

[0105] Adding a state flag to each data table to obtain each abstract business model associated with the business model;

[0106] Splitting the data tables corresponding to each business dimension according to the fields to obtain the fields included in each data table;

[0107] For any one of the data tables, based on the abstract business model corresponding to the data table and the fields included in the data table, the association relationship between the pheromone and the abstract business model is established.

[0108] In the embodiments of the present disclosure, each business model deployed in the server can be obtained first. After obtaining each business model, for each of the business models, the business model can be split according to the business dimension, i.e. single-dimensional data splitting, to obtain data tables corresponding to the business model in each business dimension. Therefore, splitting the business model according to the business dimension can also be understood as splitting according to the data table.

[0109] Continuing with the foregoing example, assuming that the corresponding company case exhibits the employee information analysis business model in this business scenario, according to the business dimension, the data table of the employee salary, the employee position and the employee attendance can be obtained, then, adding the state mark bit to each data table, the abstract business model can be obtained, that is, the data table corresponding to the employee salary plus the state mark bit can obtain an abstract business model, the data table corresponding to the employee position plus the state mark bit can obtain an abstract business model, and the data table corresponding to the employee attendance plus the state mark bit can obtain an abstract business model, so that the employee information analysis business model can be associated with three abstract business models. Among them, the state mark bit included in the abstract business model is used to determine whether the abstract business model has data change.

[0110] In addition, it can be understood that each table is composed of multiple fields, so after obtaining the data table corresponding to the business model under each business dimension, the data table corresponding to each business dimension can also be split according to the field to obtain the field included in each data table. After obtaining the field included in each data table, since the pheromone represents the field in the data table required to determine the data analysis result corresponding to the business model, for any one of the data tables, the association relationship between the pheromone and the abstract business model can be established based on the abstract business model corresponding to the data table and the field included in the data table.

[0111] Exemplarily, assuming that the data table corresponding to the employee salary is split to obtain 5 fields of employee name, basic salary, performance salary, total salary to be paid, and total salary actually paid, the data table corresponding to the employee position is split to obtain 2 fields of employee name and position, and the data table corresponding to the employee attendance is split to obtain 4 fields of employee name, late, normal attendance, and early leave.

[0112] Therefore, the abstract business model corresponding to the employee salary can be further associated with 5 pheromones of employee name, basic salary, performance salary, total salary to be paid, and total salary actually paid, the abstract business model corresponding to the employee position can be associated with 2 pheromones of employee name and position, and the abstract business model corresponding to the employee attendance can be associated with 4 pheromones of employee name, late, normal attendance, and early leave.

[0113] In some embodiments, in order to facilitate understanding, a mesh relationship diagram can be constructed according to the association relationship among the pheromone, the abstract business model and the business model, please refer to Figure 2 , Figure 2A schematic diagram of the mesh relationship among the three is shown, so that after the call of the burying point program, the target pheromone anchor point associated with the address information of the burying point program is determined, and the pheromone associated with the target pheromone anchor point is further marked with data variation, and the target pheromone is obtained. After that, by traversing the mesh relationship diagram, the abstract business model associated with the target pheromone can be quickly and accurately marked with data variation, and the target abstract business model is obtained. Subsequently, when responding to a data analysis request, the first business model can be determined according to the target abstract business model, and the data analysis result of the first business model previously saved is updated according to the data of the target pheromone after variation, to obtain the updated data analysis result corresponding to the first business model.

[0114] It should be noted that, Figure 2 The mesh relationship diagram shown is only an exemplary representation, and the association relationship in the mesh relationship diagram can be transformed according to actual conditions.

[0115] In addition, in order to be able to pre-save the data analysis result corresponding to each business model, in some embodiments, the data analysis method of the present disclosure can further include the following steps:

[0116] Initializing and running each business model, and storing the data analysis result obtained by initializing and running each business model.

[0117] In the present disclosure, each business model can be initialized and run in the server, so as to obtain and store the data analysis result of the initialized and run business model, so as to facilitate subsequent direct use of the pre-saved data to reduce the calculation amount of the data analysis request when receiving the data analysis request.

[0118] The timing of the initialization and running can be initialization at each server startup, or can also be initialization according to a set time interval, for example, initialization and running of the business model every day.

[0119] In addition, in some embodiments, each pheromone can be stripped off the data corresponding to each pheromone. In the present disclosure, the data corresponding to the pheromone can be statistical data corresponding to the pheromone, for example, the total number of employees obtained according to the field of employee name. The data corresponding to the pheromone can also be original data corresponding to the pheromone, for example, the basic salary value of each employee obtained according to the field of basic salary.

[0120] Based on the foregoing, when the server performs data analysis using the application business model, it can perform analysis and statistics based on data from one or more fields in the data table. That is, the first business model can include one or more pheromones. In some cases, the multiple pheromones included in the first business model may include the target pheromone and pheromones that have not undergone data changes. In this case, step S120, which updates the pre-saved data analysis results of the first business model based on the changed data corresponding to the target pheromone, to obtain the updated data analysis results corresponding to the first business model, may include the following steps:

[0121] Obtain the various pheromones included in the first business model, including the target pheromone and the pheromone that has not undergone data change;

[0122] Obtain the changed data corresponding to the target pheromone;

[0123] Based on the changed data corresponding to the target pheromone and the pre-saved data corresponding to the pheromone that has not undergone data change, the updated data analysis results of the first business model are determined.

[0124] In this embodiment of the disclosure, when the first business model includes both target pheromones and pheromones that have not undergone data changes, the updated data analysis result of the first business model can be determined based on the changed data corresponding to the target pheromones and the pre-saved data corresponding to the pheromones that have not undergone data changes.

[0125] In some implementations, the data corresponding to pheromones that have not undergone data changes need not be retrieved again. Instead, the data used in the business model initialization runtime that has been saved beforehand can be directly brought into the business model for calculation.

[0126] In some implementations, the constructed pheromone anchor may not correspond to the smallest fine-grained pheromone. In this case, in order to improve the sensitivity of the pheromone anchor, the tracking program can be re-injected at a more accurate location, and a new pheromone anchor can be reconstructed for the tracking program to establish the association between the new pheromone anchor and the smallest fine-grained pheromone.

[0127] Exemplarily, the pheromone extracted from the business model can be two fields of position and salary, at this time, the pheromone anchor point constructed can be position salary, when the pheromone anchor point is triggered, the corresponding marked pheromone is position and salary, so as to subsequently re-calculate in the business model corresponding to position and salary, but in some actual cases, only the salary of an employee is adjusted, and the position is not adjusted, at this time, if the business model corresponding to the position is also recalculated, calculation redundancy is caused, and therefore, in the application, the code position corresponding to the position adjustment and the code position corresponding to the salary adjustment can be re-injected with the buried point program respectively, and the pheromone anchor point position salary is further split to obtain two pheromone anchor points of position and salary, the two pheromone anchor points of position and salary are associated with the corresponding buried point program respectively, and the association between the pheromone anchor point of position and the pheromone of position is established, and the association between the pheromone anchor point of salary and the pheromone of salary is established, so that after the buried point program corresponding to the pheromone anchor point of position is called, only the pheromone corresponding to the position is marked, and after the buried point program corresponding to the pheromone anchor point of salary is called, only the pheromone corresponding to the salary is marked.

[0128] The data analysis method of the embodiment of the present disclosure will be described below in combination with a complete process. The data analysis method of the embodiment of the present disclosure includes a preparation stage and an actual application stage.

[0129] In the preparation stage:

[0130] Each business model is obtained, and each business model is data-split according to a business dimension to obtain a data table corresponding to each business model under each business dimension. A state mark bit is added to each data table to obtain each abstract business model associated with the business model. In addition, the data table corresponding to each business dimension can also be split according to a field to obtain the field included in each data table, that is, the pheromone included in each data table. Thus, the association between the pheromone and the abstract business model can be established based on the abstract business model corresponding to the same data table and the field included in the data table. In some embodiments, the above association can be constructed into a mesh relationship diagram as shown in the figure. Figure 2

[0131] The buried point program is injected in the code corresponding to each business unit, the address information of the buried point program is obtained, the pheromone anchor point is constructed, and the address information of the buried point program is associated with the pheromone anchor point.

[0132] After the above preparation is completed, the application can be deployed, and in the actual application stage:

[0133] ​Firstly, each business model is initialized and run, and data analysis results obtained by initializing and running each business model are stored.

[0134] Then, the execution of the code corresponding to the target business unit is continuously detected, and if the code is executed, the call of the burying point program is triggered in response to the execution of the code corresponding to the target business unit, and the target pheromone anchor associated with the address information of the burying point program is determined based on the association relationship between the address information of the burying point program and the pheromone anchor, and the target pheromone is marked with data variation, and the target pheromone is obtained. In this process, the marking of the pheromone that occurs data variation is completed.

[0135] Then, based on the first preset association relationship between the pheromone and the abstract business model, the abstract business model associated with the target pheromone is marked with data variation, and the target abstract business model is obtained.

[0136] Until at a certain moment, the data analysis request is received, and the server can respond to the data analysis request, determine the first business model associated with the target abstract business model based on the second preset association relationship between the abstract business model and the business model, update the data analysis result of the first business model pre-stored according to the data corresponding to the target pheromone after variation, and obtain the updated data analysis result corresponding to the first business model.

[0137] Then, the updated data analysis result corresponding to the first business model can be output at least.

[0138] In addition, it should be understood that for the above method embodiments, in order to simply describe, they are all expressed as a series of action combinations, but those skilled in the art should know that the disclosure is not limited by the above described action sequence. Secondly, those skilled in the art should know that the above described embodiments belong to preferred embodiments, and the steps involved are not necessarily necessary for the disclosure.

[0139] Based on the same concept, the disclosure also provides a data analysis device, which can be part or all of an electronic device through software, hardware or a combination of both. Referring to Figure 3 The data analysis device 300 can include:

[0140] The receiving module 310 is configured to receive a data analysis request.

[0141] The updating module 320 is configured to update a data analysis result of a first service model pre-stored according to a changed data corresponding to a target pheromone, to obtain an updated data analysis result corresponding to the first service model, in response to the data analysis request, the target pheromone being a pheromone recording data variation occurring in response to service data variation, the pheromone representing a field in a data table required for determining a data analysis result corresponding to a service model, the first service model being a service model associated with the target pheromone, and the service data variation including data variation in part of the pheromones.

[0142] The output module 330 is configured to output at least the updated data analysis result corresponding to the first service model.

[0143] Optionally, the output module 330 is further configured to output the updated data analysis result corresponding to the first service model and a data analysis result corresponding to a second service model pre-stored, the second service model being a service model not associated with the target pheromone.

[0144] Optionally, the apparatus 300 further includes:

[0145] The injection module is configured to inject a buried point program in code corresponding to each service unit.

[0146] The first response module is configured to trigger the buried point program to be called in response to the code corresponding to a target service unit being executed, the target service unit being any one of the service units.

[0147] The second response module is configured to determine a target pheromone anchor point associated with address information of the buried point program based on an association relationship between the address information of the buried point program and the pheromone anchor point in response to the buried point program being called.

[0148] The marking module is configured to mark a pheromone associated with the target pheromone anchor point based on an association relationship between the pheromone anchor point and the pheromone, to obtain the target pheromone.

[0149] Optionally, the apparatus 300 further includes:

[0150] The construction module is configured to construct the pheromone anchor point.

[0151] The first acquisition module is configured to acquire the address information of the buried point program.

[0152] The association module is configured to associate the address information of the buried point program with the pheromone anchor point.

[0153] Optionally, the apparatus 300 further includes:

[0154] The second obtaining module is configured to mark data of an abstract business model associated with the target pheromone based on a first preset association relationship between the pheromone and the abstract business model, to obtain a target abstract business model, and one abstract business model comprises a state mark bit and a data table of one business dimension of a business model;

[0155] In this case, the updating module 320 comprises:

[0156] The first business model determining submodule is configured to determine the first business model associated with the target abstract business model based on a second preset association relationship between the abstract business model and the business model in response to the data analysis request.

[0157] The updating submodule is configured to update a data analysis result of the first business model based on the changed data corresponding to the target pheromone, to obtain an updated data analysis result corresponding to the first business model.

[0158] Optionally, the apparatus 300 further comprises:

[0159] The first obtaining submodule is configured to obtain each business model.

[0160] The first splitting submodule is configured to split data of each of the business models according to business dimensions, to obtain data tables of the business models corresponding to the business dimensions.

[0161] The second obtaining submodule is configured to add a state mark bit to each data table, to obtain each abstract business model associated with the business model.

[0162] The second splitting submodule is configured to split the data tables corresponding to the business dimensions according to fields, to obtain fields included in each data table.

[0163] The association relationship establishing submodule is configured to establish an association relationship between a pheromone and an abstract business model based on the abstract business model corresponding to any one of the data tables and the fields included in the data table.

[0164] Optionally, the apparatus 300 further comprises:

[0165] The initializing module is configured to initialize and run each business model, and store a data analysis result obtained by initializing and running each business model.

[0166] Optionally, the updating module 320 comprises:

[0167] a third obtaining sub-module, configured to obtain each pheromone included in the first service model, the each pheromone including the target pheromone and a pheromone that does not occur data variation;

[0168] a fourth obtaining sub-module, configured to obtain the data after variation corresponding to the target pheromone;

[0169] a determining sub-module, configured to determine an updated data analysis result of the first service model according to the data after variation corresponding to the target pheromone and the data corresponding to the pheromone that does not occur data variation which is pre-stored.

[0170] As to the apparatus in the above embodiments, the specific manners in which the modules perform operations have been described in details in the embodiments of the method, and thus will not be described in details here.

[0171] Based on the same inventive concept, the disclosure further provides an electronic device, comprising:

[0172] a memory having a computer program stored thereon;

[0173] a processor configured to execute the computer program in the memory to implement the steps of any of the above data analysis methods.

[0174] In a possible manner, a block diagram of the electronic device can be as shown in Figure 4 Referring to Figure 4 , the electronic device 400 can include a processor 401 and a memory 402. The electronic device 400 can further include one or more of a multimedia component 403, an input / output interface 404, and a communication component 405.

[0175] The processor 401 is configured to control overall operations of the electronic device 400 to complete all or part of the steps of the data analysis method described above. The memory 402 is configured to store various types of data to support operations of the electronic device 400, which can include, for example, instructions for any application or method operating on the electronic device 400, and application-related data, such as contact data, sent and received messages, pictures, audio, video, and the like. The memory 402 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk. The multimedia component 403 can include a screen and an audio component. The screen can be, for example, a touch screen, and the audio component is configured to output and / or input audio signals. For example, the audio component can include a microphone configured to receive external audio signals. The received audio signals can be further stored in the memory 402 or transmitted through the communication component 405. The audio component also includes at least one speaker configured to output audio signals. The input / output interface 404 provides an interface between the processor 401 and other interface modules, which can be a keyboard, a mouse, a button, and the like. The buttons can be analog buttons or physical buttons. The communication component 405 is configured to perform wired or wireless communication between the electronic device 400 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, near field communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, and the like, or a combination of one or more of them, is not limited herein. Therefore, the corresponding communication component 405 can include a Wi-Fi module, a Bluetooth module, an NFC module, and the like.

[0176] In an exemplary embodiment, the electronic device 400 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic elements for performing the above-described data analysis method.

[0177] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, which, when executed by a processor, implement the steps of the above-described data analysis method. For example, the computer-readable storage medium can be the above-described memory 402 including program instructions, which can be executed by the processor 401 of the electronic device 400 to complete the above-described data analysis method.

[0178] In another exemplary embodiment, a computer program product is also provided, which contains a computer program capable of being executed by a programmable device, and the computer program has code portions for executing the above-described data analysis method when executed by the programmable device.

[0179] The preferred embodiments of the present disclosure are described in detail above with reference to the accompanying drawings, but the present disclosure is not limited to the specific details in the above-described embodiments. Within the technical concept scope of the present disclosure, various simple modifications can be made to the technical solutions of the present disclosure, and all these simple modifications shall fall within the protection scope of the present disclosure.

[0180] In addition, it should be noted that each specific technical feature described in the above-described specific embodiments can be combined in any appropriate manner without contradiction, and in order to avoid unnecessary repetition, the present disclosure will not make further descriptions on various possible combinations.

[0181] Furthermore, various different embodiments of the present disclosure can also be combined in any appropriate manner, as long as it does not deviate from the idea of the present disclosure, and it shall be considered as the disclosed content of the present disclosure.

Claims

1. A data analysis method, characterized by, The method comprises: receiving a data analysis request; in response to the data analysis request, based on a first preset association relationship between pheromones and abstract business models, data change marking is performed on the abstract business model associated with the target pheromone to obtain a target abstract business model, one abstract business model comprising a state marking bit and a data table of one business dimension of the business model, the target pheromone being a pheromone recording data change in response to business data change, the pheromone representing a field in the data table required for determining the data analysis result of the corresponding business model, and the business data change comprising changing data in part of the pheromones; based on a second preset association relationship between the abstract business model and the business model, a first business model associated with the target abstract business model is determined, wherein one business model is associated with at least one abstract business model; based on the changed data corresponding to the target pheromone, the pre-stored data analysis result of the first business model is updated to obtain an updated data analysis result corresponding to the first business model; at least output the updated data analysis result corresponding to the first business model.

2. The method of claim 1, wherein, The at least outputting the updated data analysis result corresponding to the first business model comprises: outputting the updated data analysis result corresponding to the first business model and the pre-stored data analysis result corresponding to the second business model, the second business model being a business model not associated with the target pheromone.

3. The method of claim 1, wherein, The method further comprises: injecting a buried point program in the code corresponding to each business unit; in response to the code corresponding to the target business unit being executed, triggering the buried point program to be called, the target business unit being any one of the business units; in response to the buried point program being called, based on the association relationship between the address information of the buried point program and the pheromone anchor, determining a target pheromone anchor associated with the address information of the buried point program; based on the association relationship between the pheromone anchor and the pheromone, data change marking is performed on the pheromone associated with the target pheromone anchor to obtain the target pheromone.

4. The method of claim 3, wherein, The method further comprises: constructing a pheromone anchor; obtaining the address information of the buried point program; associating the address information of the buried point program with the pheromone anchor.

5. The method of claim 1, wherein, The method further comprises: obtaining each business model; for each of the business models, data is split according to business dimensions to obtain data tables corresponding to each business dimension of the business model; adding a state marking bit to each data table to obtain each abstract business model associated with the business model; splitting the data tables corresponding to each business dimension according to fields to obtain fields included in each data table; for any one of the data tables, based on the abstract business model corresponding to the data table and the fields included in the data table, an association relationship between pheromones and abstract business models is established.

6. The method of claim 1, wherein, The method further comprises: initializing and running each business model, and storing the data analysis result obtained by initializing and running each business model.

7. The method of claim 1, wherein, The updated data analysis result of the first business model corresponding to the target pheromone is obtained by updating the data analysis result of the first business model according to the changed data corresponding to the target pheromone, and the updated data analysis result of the first business model corresponding to the target pheromone comprises: obtaining each pheromone included in the first business model, wherein the each pheromone comprises the target pheromone and a pheromone that does not occur data change; obtaining changed data corresponding to the target pheromone; determining the updated data analysis result of the first business model according to the changed data corresponding to the target pheromone and data corresponding to the pheromone that does not occur data change.

8. A data analysis device, characterized by The device comprises: a receiving module configured to receive a data analysis request; an updating module configured to, in response to the data analysis request, perform data change marking on an abstract business model associated with a target pheromone based on a first preset association relationship between pheromones and abstract business models, to obtain a target abstract business model, wherein one abstract business model comprises a state marking bit and a data table of one business dimension of a business model, the target pheromone is a pheromone that occurs data change and is recorded in response to business data change, a pheromone represents a field in a data table required for determining a data analysis result of a business model, and the business data change comprises changing data in part of all pheromones; determine a first business model associated with the target abstract business model based on a second preset association relationship between abstract business models and business models, wherein one business model is associated with at least one abstract business model; and update a data analysis result of the first business model that is previously saved according to changed data corresponding to the target pheromone, to obtain an updated data analysis result of the first business model corresponding to the target pheromone; an output module configured to output at least the updated data analysis result of the first business model corresponding to the target pheromone.

9. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the steps of the method in any one of claims 1-7.

10. An electronic device, comprising: comprise: a memory having a computer program stored thereon; a processor configured to execute the computer program in the memory to implement the steps of the method in any one of claims 1-7.

Citation Information

Patent Citations

  • Data analysis method and device, storage medium and electronic equipment

    CN110362585A