A data statistics method and device

By using pre-set statistics pages in the database management system to generate statistics tasks and submit them to the computing cluster for processing, combined with custom annotations to disperse configuration information, the problem of bloated traditional configuration files is solved, and efficient data statistics and simplified Configuration management.

CN111352963BActive Publication Date: 2024-11-26BEIJING QIHOOD TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811585448.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-24
Publication Date
2024-11-26
Estimated Expiration
2038-12-24

AI Technical Summary

Technical Problem

When traditional relational databases are statistics, configuration files become bloated and difficult to manage due to the need to support multiple middleware and environments, resulting in complex configuration and inefficient configuration.

Method used

Receive statistical parameters through the pre-set statistics page, generate statistical tasks and send them to the designated computing cluster for processing, use custom annotations to distribute configuration information, reduce configuration file redundancy, and package statistical tasks into MapReduce jobs and submit them to the Hadoop computing cluster.

Benefits of technology

It realizes the efficiency of data statistics, reduces the workload of the database management system, simplifies configuration management, and improves the system's maintainability and statistical speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111352963B_ABST
    Figure CN111352963B_ABST
Patent Text Reader

Abstract

The present invention provides a data statistics method and device, which are applied to a database management system, and the method includes: receiving statistical parameters of at least one statistical report for any business project through a pre-set statistical page, and generating a statistical task based on the statistical parameters; sending the statistical task to a designated computing cluster, and the designated computing cluster performs statistics on relevant data information of the business project based on the statistical task; receiving the statistical results returned by the designated computing cluster, and generating a statistical report based on the statistical results for display. Based on the data statistics method provided by the present invention, the statistical part is transferred to the designated computing cluster for statistical processing, which can speed up the statistical speed and reduce the workload of the database management system. In addition, the configuration information related to the business log is added in the form of annotations, so that the original bloated configuration file no longer exists, which increases the maintainability of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the continuous development of computer technology, in order to meet the different needs of users, the functions and types of applications in terminals are gradually increasing. For the server side of the application, in order to better improve and optimize the functions of the application itself, it is usually necessary to check how many users access the data and then issue reports. For traditional relational databases, when performing data statistics, they often configure the system operation in a personalized way by configuring configuration files in formats such as properties / xml / yaml. However, if there are many middlewares used in the system business, when various configurations are performed for more environments and middlewares, the configuration files will become very bloated, and ultimately the configuration files cannot be managed. Summary of the invention

[0003] The present invention provides a data statistics method and device to overcome the above problems or at least partially solve the above problems.

[0004] According to one aspect of the present invention, there is provided a data statistics method, which is applied to a database management system, and the method comprises:

[0005] Receiving statistical parameters of at least one statistical report for any business item through a preset statistical page, and generating a statistical task based on the statistical parameters;

[0006] Sending the statistical task to a designated computing cluster, and having the designated computing cluster perform statistics on relevant data information of the business project based on the statistical task;

[0007] Receive the statistical results returned by the specified computing cluster, and generate a statistical report based on the statistical results for display.

[0008] Optionally, before receiving statistical parameters of at least one statistical report for any business item through a preset statistical page and generating a statistical task based on the statistical parameters, the method further includes:

[0009] A first custom annotation is added to each business class in a program file corresponding to each business project, and the first custom annotation is used to represent configuration information related to the business log of the business project.

[0010] Optionally, receiving statistical parameters of at least one statistical report for any business item through a preset statistical page, and generating a statistical task based on the statistical parameters includes:

[0011] Statistical parameters of at least one statistical report for any business project are received through a pre-set statistical page, and a statistical task is generated based on a first custom annotation corresponding to the business project in combination with the statistical parameters.

[0012] Optionally, the adding of a first custom annotation for each business class in a program file corresponding to each business project, after indicating the business log-related configuration information of the business project through the first custom annotation, further includes:

[0013] At least one attribute value of the business class corresponding to the first custom annotation is obtained, and based on the attribute value, a second custom annotation is set to be nested in the first custom annotation.

[0014] Optionally, sending the statistical task to a designated computing cluster, and having the designated computing cluster perform statistics on the data information of the business project based on the statistical task, includes:

[0015] The statistical tasks are packaged into a MapReduce computing job and sent to a Hadoop computing cluster, and the Hadoop computing cluster performs statistics on the relevant data information of the business project based on the computing job.

[0016] Optionally, the statistical parameters include: screening item parameters, indicator parameters and / or log storage paths of the business items;

[0017] The filtering item parameters include: project name, version number, release channel and / or operating system;

[0018] The indicator parameters include: page views and / or number of unique visitors.

[0019] According to another aspect of the present invention, there is also provided a data statistics device, which is applied to a database management system, and the device comprises:

[0020] A task generation module, configured to receive statistical parameters of at least one statistical report for any business item through a preset statistical page, and generate a statistical task based on the statistical parameters;

[0021] A sending module, configured to send the statistical task to a designated computing cluster, so that the designated computing cluster performs statistics on the relevant data information of the business project based on the statistical task;

[0022] The receiving module is configured to receive the statistical results returned by the designated computing cluster, and generate a statistical report based on the statistical results for display.

[0023] Optionally, the device further comprises:

[0024] The adding module is configured to add a first custom annotation to each business class in a program file corresponding to each business project, and the business log-related configuration information of the business project is represented by the first custom annotation.

[0025] Optionally, the task generation module is further configured to:

[0026] Statistical parameters of at least one statistical report for any business project are received through a pre-set statistical page, and a statistical task is generated based on a first custom annotation corresponding to the business project in combination with the statistical parameters.

[0027] Optionally, the device further comprises:

[0028] The nesting module is configured to obtain at least one attribute value of the business class corresponding to the first custom annotation, and set the second custom annotation to be nested in the first custom annotation based on the attribute value.

[0029] Optionally, the sending module is further configured to:

[0030] The statistical tasks are packaged into a MapReduce computing job and sent to a Hadoop computing cluster, and the Hadoop computing cluster performs statistics on the relevant data information of the business project based on the computing job.

[0031] Optionally, the statistical parameters received by the task generation module based on the statistical page include: filter item parameters, indicator parameters and / or log storage paths of the business items;

[0032] The filtering item parameters include: project name, version number, release channel and / or operating system;

[0033] The indicator parameters include: page views and / or number of unique visitors.

[0034] According to another aspect of the present invention, a computer storage medium is provided, wherein the computer storage medium stores computer program code, and when the computer program code is executed on a computing device, the computing device is caused to execute any of the above-mentioned data statistics methods.

[0035] According to another aspect of the present invention, there is further provided a computing device, comprising:

[0036] processor;

[0037] a memory storing computer program code;

[0038] When the computer program code is executed by the processor, it causes the computing device to execute any of the above-mentioned data statistics methods.

[0039] The present invention provides a more efficient data statistics method, which is mainly used in a database management system. In the data statistics method provided by the present invention, statistical parameters of at least one statistical report for any business project are received through a pre-set statistical page, and statistical tasks are generated based on the statistical parameters and submitted to a designated computing cluster. The designated computing cluster can perform data statistics after receiving the statistical tasks, and then return the statistical results to the database management system for display. Based on the data statistics method provided by the present invention, when performing data statistics, it is only necessary to input statistical parameters based on the pre-set statistical page to generate statistical tasks, and transfer the statistical part to the designated computing cluster for statistical processing, which can speed up the statistical speed and reduce the workload of the database management system.

[0040] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below.

[0041] Based on the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will become more aware of the above and other objects, advantages and features of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0043] Figure 1 is a flow chart of a data statistics method according to an embodiment of the present invention;

[0044] Figure 2 is a schematic diagram of a statistics page according to an embodiment of the present invention;

[0045] Figure 3 is a schematic diagram of the structure of a data statistics device according to an embodiment of the present invention;

[0046] Figure 4 It is a structural schematic diagram of a data statistics device according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0047] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0048] Figure 1 is a flow chart of a data statistics method provided according to an embodiment of the present invention, see Figure 1 It can be seen that the data statistics method provided by the embodiment of the present invention may include:

[0049] Step S102, receiving statistical parameters of at least one statistical report for any business item through a preset statistical page, and generating a statistical task based on the statistical parameters;

[0050] Step S104, sending the statistical task to a designated computing cluster, and the designated computing cluster performs statistics on relevant data information of the business project based on the statistical task;

[0051] Step S106, receiving the statistical results returned by the designated computing cluster, and generating a statistical report based on the statistical results for display.

[0052] The embodiment of the present invention provides a more efficient data statistics method, which is mainly used in database management systems. In the data statistics method provided by the embodiment of the present invention, statistical parameters of at least one statistical report for any business project are received through a pre-set statistical page, and statistical tasks are generated based on the statistical parameters and submitted to a designated computing cluster. The designated computing cluster can perform data statistics after receiving the statistical tasks, and then return the statistical results to the database management system for display. Based on the data statistics method provided by the embodiment of the present invention, when performing data statistics, it is only necessary to input statistical parameters based on the pre-set statistical page to generate statistical tasks, and transfer the statistical part to the designated computing cluster for statistical processing, which can speed up the statistical speed and reduce the workload of the database management system. The database management system provided by the embodiment of the present invention can be a relational database management system such as MySQL and Oracle.

[0053] As mentioned in the above step S102, the embodiment of the present invention mainly receives statistical parameters of at least one statistical report for any business project through a pre-set statistical page. Among them, the business project can be different functions for different applications, such as business projects that provide different functions in applications such as mobile guards and cleaning masters. The statistical report can be data statistics of business logs of different business projects or other data-related statistical reports. Optionally, the pre-set statistical page is a web page that can display information in a terminal browser or application. Multiple triggerable interfaces can be set in the web page. Different statistical parameters can be selected based on a drop-down menu based on different trigger interfaces, or parameters can be entered based on an input window. The statistical parameters in the embodiment of the present invention may include: filter item parameters, indicator parameters and / or log storage paths of business projects, and calculation result storage paths, etc.; wherein, the filter item parameters may include: filter items of multiple dimensions such as project name, version number, release channel and / or operating system; indicator parameters may include: page views (PV, Page View) and / or number of unique visitors (UV, Unique Visitor). In addition to the above introduction, the statistical page may also include information such as the name and quantity of the generated statistical report.

[0054] Figure 2 A schematic diagram of a statistics page according to an embodiment of the present invention is shown. Figure 2 It can be seen that the filtering items include project name (Mobile Guardian, Cleaning Master, Red Envelope, Push Message), version number (V1.0, V1.1, V1.2, V2.0), release channel (App Store, Software Center, Online Promotion), indicator (pv, uv) and storage path. Users can make choices based on the existing options, and then summarize the statistical parameters selected by the user to generate statistical tasks and publish them to the specified computing cluster. Figure 2 Only some statistical parameters and interface layout of the statistical page are schematically shown. In actual applications, other types of statistical parameters can be added for selection, and the statistical page can be laid out in other ways, which is not limited in the present invention.

[0055] For traditional solutions, the storage and statistics of business logs are all based on the existing database management system. When configuring the business, they are often concentrated in a configuration file, resulting in the storage of thousands of lines of files. In addition, logs are added (insert), deleted (delete), modified (update), and checked (select) directly in the database management system, which not only makes the file too bloated, but also very difficult to maintain.

[0056] Taking the configuration of free wifi as an example, you need to configure the HDFS cluster path where the log is located, the time format of the log partition, the names of multiple data tables output by the same log source, the data type of each table, and the dimensions and filter items of each record. Take the dimensions and filter items of each record as an example:

[0057] The traditional filter field configuration code is as follows:

[0058] <field> time_stamp:bigint< / field>

[0059] <field> devtype:string< / field>

[0060] <field> channel:string< / field> ...

[0062] <field> arrive_time:bigint< / field>

[0063] Some codes of the traditional dimension field configuration method are as follows:

[0064] <name> wifi_uv_total< / name>

[0065] <name> wifi_uv_< / name>

[0066] <name> wifi_ap< / name> ...

[0068] <name> wifi_uv_auto_screen< / name>

[0069] From the above, we can see that the traditional configuration method will configure corresponding records for different filter items and dimensions.

[0070] Based on the method provided by the embodiment of the present invention, the database management system only performs data query (select), and other operations of adding, deleting and modifying are processed by the designated computing cluster. In addition, the business logs of different business projects can also be stored in the designated computing cluster. The designated computing cluster can be a big data platform, such as a Hadoop service cluster, and the business logs can be stored in HDFS.

[0071] Optionally, the embodiment of the present invention configures different business projects in the form of annotations. That is, before the above step S102, it may also include: adding a first custom annotation to each business class in the program file corresponding to each business project, and representing the business log-related configuration information of the business project through the first custom annotation.

[0072] Annotation is a program fragment that can be used to modify a section of code or attribute in Java language. In the present embodiment, the configuration information such as the function of the business project (such as storing multiple business statistics lists) and the like related to the log of the business project are explained in the program files corresponding to different business projects in the form of annotations, and the program files of the annotations and business projects are packaged together, which is equivalent to the configuration of the program files. In Java, the annotation begins with @, which can be placed on the class name, or on the method name or field. In this way, the very redundant configuration files in the formats of properties / xml / yaml will be scattered in the form of annotations to the relevant code programs of each business project and associated together, and can be customized according to the relevant business logs of different business projects to achieve the purpose of configuration. In addition, the annotations of the business project can also be decoupled from the program itself to facilitate later modification.

[0073] In addition, the preferred embodiment of the present invention can also obtain at least one attribute value of the business class corresponding to the first custom annotation (mark the attributes of each statistical list stored in the first custom annotation, such as table name, type and other information), and set the second custom annotation based on the above attribute value to be nested in the first custom annotation. That is to say, in the preferred embodiment of the present invention, annotations can also be nested in annotations to design a hierarchical data configuration. Hierarchical data can be regarded as attributes in a class design. If the fields in the class have other classes, they are classes within the class. If ordinary annotation attributes can be configured as annotations in the annotation, and the attributes of the original class can be regarded as a new type of annotation, hierarchical nested configuration through annotations is achieved.

[0074] The following schematic diagram shows how to mark programs based on annotations instead of configuration files:

[0075]

[0076] @LogAttibutes is used to indicate the configuration information related to the source of the business log.

[0077] @TableCollection indicates that my table collection has multiple possible output tables. However, each table has its own properties, so we set the value of the tables property in TableCollection to a nested annotation to implement hierarchical configuration.

[0078]

[0079] In the above code, Table and Indicator are custom nested annotations.

[0080] Among them, the definition of @Table can be as follows:

[0081]

[0082]

[0083] The definition of @Indicator can be as follows:

[0084]

[0085] By marking the business class with two annotations, the original bloated XML configuration is replaced. Because the configuration is distributed to each business class, the original bloated configuration file no longer exists, which increases the maintainability of the system.

[0086] After adding annotations to the business items, in the above step S102, when generating statistical tasks, statistical parameters of at least one statistical report for any business item can be received through a pre-set statistical page, and statistical tasks can be generated based on the first custom annotation corresponding to the business item combined with the statistical parameters.

[0087] As described above, the designated computing cluster in this embodiment can be a Hadoop service cluster. Hadoop includes a parallel computing model Map / Reduce, a distributed file system HDFS, and a distributed database Hbase. The above step S104 sends the statistical task to the designated computing cluster. When the designated computing cluster performs data statistics, the statistical task can be packaged into a MapReduce computing job and sent to the Hadoop computing cluster, that is, the configuration file generated based on the first custom annotation and the second custom annotation and the program file of the corresponding business project are packaged into a jar package as a computing job (job) and submitted to the adoop computing cluster. The Hadoop computing cluster performs statistics on the relevant data information of the business project based on the computing job. After the statistics are completed, the Hadoop computing cluster returns the statistical results to the database management system, and the database management system displays the statistical results. When displaying, it can be directly displayed based on a pre-set statistical page, or it can be stored in a designated storage area and then retrieved for display. The present invention does not limit it.

[0088] Based on the same inventive concept, the embodiment of the present invention also provides a data statistics device, which is applied to a database management system, such as Figure 3 As shown, the data statistics device provided by the embodiment of the present invention may include:

[0089] The task generation module 310 is configured to receive statistical parameters of at least one statistical report for any business project through a preset statistical page, and generate a statistical task based on the statistical parameters;

[0090] A sending module 320 is configured to send the statistical task to a designated computing cluster, and the designated computing cluster performs statistics on relevant data information of the business project based on the statistical task;

[0091] The receiving module 330 is configured to receive the statistical results returned by the designated computing cluster, and generate a statistical report based on the statistical results for display.

[0092] In a preferred embodiment of the present invention, Figure 4 As shown, the above device may also include:

[0093] The adding module 340 is configured to add a first custom annotation to each business class in the program file corresponding to each business project, and the configuration information related to the business log of the business project is represented by the first custom annotation.

[0094] In a preferred embodiment of the present invention, the task generation module 310 may also be configured as follows:

[0095] Statistical parameters of at least one statistical report for any business project are received through a pre-set statistical page, and a statistical task is generated based on a first custom annotation corresponding to the business project in combination with the statistical parameters.

[0096] In a preferred embodiment of the present invention, Figure 4 As shown, the above device may also include:

[0097] The nesting module 350 is configured to obtain at least one attribute value of the business class corresponding to the first custom annotation, and set the second custom annotation to be nested in the first custom annotation based on the attribute value.

[0098] In a preferred embodiment of the present invention, the sending module 320 may also be configured as follows:

[0099] The statistical tasks are packaged into MapReduce computing jobs and sent to the Hadoop computing cluster, which then performs statistics on the relevant data information of the business projects based on the computing jobs.

[0100] In a preferred embodiment of the present invention, the task generation module 310 receives statistical parameters based on the statistical page, including: filter item parameters, indicator parameters and / or log storage paths of business items;

[0101] The filter parameters include: project name, version number, release channel and / or operating system;

[0102] Metric parameters include: page views and / or number of unique visitors.

[0103] Based on the same inventive concept, an embodiment of the present invention further provides a computer storage medium, which stores computer program code. When the computer program code runs on a computing device, it causes the computing device to execute the data statistics method described in any of the above embodiments.

[0104] Based on the same inventive concept, an embodiment of the present invention further provides a computing device, including:

[0105] processor;

[0106] a memory storing computer program code;

[0107] When the computer program code is executed by a processor, it causes the computing device to execute the data statistics method described in any of the above embodiments.

[0108] The embodiment of the present invention provides an efficient data statistics method and device, which can be applied to a database management system. In the data statistics method provided by the embodiment of the present invention, statistical parameters of at least one statistical report for any business project are received through a pre-set statistical page, and statistical tasks are generated based on the statistical parameters and submitted to a designated computing cluster. After receiving the statistical tasks, the designated computing cluster can execute data statistics, and then return the statistical results to the database management system for display. Based on the data statistics method provided by the embodiment of the present invention, when performing data statistics, it is only necessary to input statistical parameters based on the pre-set statistical page to generate statistical tasks, and transfer the statistical part to the designated computing cluster for statistical processing, which can speed up the statistical speed and reduce the workload of the database management system. In addition, the embodiment of the present invention also uses annotations to add business log-related configuration information to the program file of the business project, and nests annotations in the annotations to set at least one attribute value of the business class corresponding to the annotation, while realizing the decoupling of the configuration file from the program, and realizing the configuration of the program file hierarchy, so that the original bloated configuration file no longer exists, saving storage space and increasing the maintainability of the system.

[0109] Those skilled in the art can clearly understand that the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and for the sake of brevity, they are not further described here.

[0110] In addition, the functional units in various embodiments of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into one processing unit. The above integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.

[0111] Those skilled in the art can understand that if the integrated functional unit is implemented in the form of software and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can essentially or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, which includes a number of instructions to enable a computing device (such as a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention when running the instructions. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes.

[0112] Alternatively, all or part of the steps of implementing the aforementioned method embodiments may be accomplished by hardware associated with program instructions (such as a computing device such as a personal computer, a server, or a network device), and the program instructions may be stored in a computer-readable storage medium. When the program instructions are executed by a processor of a computing device, the computing device executes all or part of the steps of the methods described in the embodiments of the present invention.

[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that within the spirit and principles of the present invention, the technical solutions described in the aforementioned embodiments can still be modified, or some or all of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate from the protection scope of the present invention.

Claims

1. A data statistics method, applied to a database management system, comprising: Receive statistical parameters of at least one statistical report for any business project through a pre-set statistical page, generate statistical tasks based on the statistical parameters, add a first custom annotation for each business class in a program file corresponding to each business project, represent configuration information related to the business log of the business project through the first custom annotation, and generate statistical tasks based on the first custom annotation corresponding to the business project in combination with the statistical parameters, wherein the statistical parameters include filter item parameters, indicator parameters and / or log storage path of the business project; Sending the statistical task to a designated computing cluster, and having the designated computing cluster perform statistics on relevant data information of the business project based on the statistical task; Receive the statistical results returned by the specified computing cluster, and generate a statistical report based on the statistical results for display.

2. The method according to claim 1, wherein: The step of receiving statistical parameters of at least one statistical report for any business item through a preset statistical page and generating a statistical task based on the statistical parameters further includes: A first custom annotation is added to each business class in a program file corresponding to each business project, and the first custom annotation is used to represent configuration information related to the business log of the business project.

3. The method according to claim 2, wherein: The receiving statistical parameters of at least one statistical report for any business item through a preset statistical page, and generating a statistical task based on the statistical parameters, comprises: Statistical parameters of at least one statistical report for any business project are received through a pre-set statistical page, and a statistical task is generated based on a first custom annotation corresponding to the business project in combination with the statistical parameters.

4. The method according to claim 2, wherein: After adding a first custom annotation to each business class in the program file corresponding to each business project, and indicating the business log-related configuration information of the business project through the first custom annotation, the method further includes: At least one attribute value of the business class corresponding to the first custom annotation is obtained, and based on the attribute value, a second custom annotation is set to be nested in the first custom annotation.

5. The method according to any one of claims 1 to 4, wherein: The sending the statistical task to a designated computing cluster, and the designated computing cluster performing statistics on the data information of the business project based on the statistical task, includes: The statistical tasks are packaged into a MapReduce computing job and sent to a Hadoop computing cluster, and the Hadoop computing cluster performs statistics on the relevant data information of the business project based on the computing job.

6. The method according to any one of claims 1 to 4, wherein: The statistical parameters include: the filtering item parameters, indicator parameters and / or log storage path of the business item; The filtering item parameters include: project name, version number, release channel and / or operating system; The indicator parameters include: page views and / or number of unique visitors.

7. A data statistics device, applied to a database management system, comprising: A task generation module is configured to receive statistical parameters of at least one statistical report for any business project through a preset statistical page, generate statistical tasks based on the statistical parameters, add a first custom annotation for each business class in a program file corresponding to each business project, represent configuration information related to the business log of the business project through the first custom annotation, and generate statistical tasks based on the first custom annotation corresponding to the business project in combination with the statistical parameters, wherein the statistical parameters include filter item parameters, indicator parameters and / or log storage path of the business project; A sending module, configured to send the statistical task to a designated computing cluster, so that the designated computing cluster performs statistics on the relevant data information of the business project based on the statistical task; The receiving module is configured to receive the statistical results returned by the designated computing cluster, and generate a statistical report based on the statistical results for display.

8. The device according to claim 7, wherein: Also includes: The adding module is configured to add a first custom annotation to each business class in a program file corresponding to each business project, and the business log-related configuration information of the business project is represented by the first custom annotation.

9. The device according to claim 8, wherein: The task generation module is also configured as follows: Statistical parameters of at least one statistical report for any business project are received through a pre-set statistical page, and a statistical task is generated based on a first custom annotation corresponding to the business project in combination with the statistical parameters.

10. The device according to claim 9, wherein: Also includes: The nesting module is configured to obtain at least one attribute value of the business class corresponding to the first custom annotation, and set the second custom annotation to be nested in the first custom annotation based on the attribute value.

11. The device according to any one of claims 7 to 10, wherein: The sending module is also configured as: The statistical tasks are packaged into a MapReduce computing job and sent to a Hadoop computing cluster, and the Hadoop computing cluster performs statistics on the relevant data information of the business project based on the computing job.

12. The device according to any one of claims 7 to 10, wherein: The statistical parameters received by the task generation module based on the statistical page include: the filter item parameters, indicator parameters and / or log storage path of the business project; The filtering item parameters include: project name, version number, release channel and / or operating system; The indicator parameters include: page views and / or number of unique visitors.

13. A computer storage medium storing a computer program code, wherein when the computer program code is executed on a computing device, the computing device is caused to execute the data statistics method according to any one of claims 1 to 6.

14. A computing device comprising: processor; a memory storing computer program code; When the computer program code is executed by the processor, it causes the computing device to execute the data statistics method according to any one of claims 1 to 6.