A data analysis method and a data analysis platform
Through the front-end and back-end separation architecture and modular design, it solves the problem of functional expansion of the visual data analysis platform in the existing technology, achieves flexible customization of functions and cost savings, and supports multiple database parsing.
Patent Information
- Application Number
- CN202111311278.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-08
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-11-08
AI Technical Summary
The existing visual data analysis platform is difficult to add or expand functions, and it is difficult to customize functions, and the front-end and back-end are tightly coupled, resulting in high expansion costs.
Adopting an architecture in which the front-end module and the back-end module are separated, the front-end module includes a data operation module, a front-end configuration module, a data visualization module and a front-end data interaction module. The back-end module includes a back-end data interaction module and a back-end expansion module, which are received through the front-end module. User instructions, the back-end module retrieves and processes data from the underlying data, and returns it to the front-end for visual display, supporting custom expansion of front-end and back-end functions.
It achieves flexible customization and expansion of functions and reduces development costs. Users can freely customize the interactive logic and data flow processing of the front-end and back-end according to their needs, and supports the analysis of multiple databases such as Oracle and MySQL.
Smart Images

Figure CN114116046B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of data processing, and more specifically, relates to a data analysis method and a data analysis platform. Background Art
[0002] In the field of data analysis and processing, there are many visual data analysis platforms that provide complete front-end and back-end services and can be used out of the box. However, when they are actually applied to products, the performance and requirements of each product are different. The visual data analysis platforms in the existing technology are difficult to add or expand functions and difficult to customize functions.
[0003] In addition, the visual data analysis platform in the existing technology is often tightly coupled in architecture with the front-end and back-end, and all functions are concentrated in one place. If you modify a certain place or add certain functions, you may need to change the entire system. Therefore, users need to be familiar with the implementation and code of the front-end and back-end when expanding functions, resulting in high expansion costs.
[0004] For example, a Chinese patent with an application publication date of May 10, 2017, an application publication number of CN106649426A, and a patent name of a data analysis method, a data analysis platform, and a server discloses a technical solution, wherein the data analysis platform includes: a data source, an Elasticsearch index module connected to the data source, a Spark SQL processing module connected to the Elasticsearch index module, and a data presentation module connected to the Spark SQL processing module, wherein the data source is used to provide data; the Elasticsearch index module is used to obtain searched data from the data source through a data search interface, and pre-process the data, and send the pre-processed data to the Spark SQL processing module; the Spark SQL processing module is used to perform data analysis on the pre-processed data, and send the analyzed data to the data presentation module; the data presentation module is used to present the analyzed data. This application can solve the problem that the existing data analysis platform is relatively complex when performing data analysis.
[0005] The application publication date is December 25, 2020, the application publication number is CN112131302A, and the patent name is a Chinese patent for a commercial data analysis method and platform. A technical solution is disclosed. This technical solution uses the most basic business flow data to generate basic data required for each dimension by batch pre-processing. It uses the sharding technology of the Elastic Job open source middleware and the solution to formulate the optimal sharding strategy to process each task in batches of millions or tens of millions of data, and split the massive data into configurable small blocks for independent batch processing and combined with multi-threading to complete the daily analysis and processing of massive data.
[0006] The application was published on November 8, 2019, with the application publication number CN110430173A. The Chinese patent for the patent name is A cloud platform based on Vue+SpringCloud. It discloses a technical solution. The platform adopts a front-end and back-end separation mode. The front-end of the platform includes a foreground system and a back-end system running in two processes respectively, and the back-end of the platform includes the bottom layer of the system; the foreground system includes a plurality of application modules for providing functional services to users, and the back-end system includes a plurality of application modules for administrator review and user qualification authentication. A microservice architecture is adopted between the application modules of the front-end system; the back-end includes the bottom layer of the system, and the bottom layer of the system includes a database, a cache database, a reverse proxy server and a file server. The invention can achieve loose coupling between the modules and high cohesion within the service. Although the technical solution can achieve loose coupling between the front-end and the back-end, it still does not solve the problem that the visual data analysis platform in the prior art is difficult to add or expand functions and difficult to customize functions. Summary of the invention
[0007] 1. Problem to be solved
[0008] In view of the problem that it is difficult to add or expand functions and to customize functions of the visual data analysis platform in the prior art, the present invention provides a data analysis method and a data analysis platform.
[0009] 2. Technical solution
[0010] In order to solve the above problems, the technical solution adopted by the present invention is as follows: a data analysis platform, including a front-end module and a back-end module, the front-end module includes a data operation module, a front-end configuration module, a data visualization module, and a front-end data interaction module, wherein the data operation module is mainly used to receive and parse user requests and generate an N-layer drill-down list, wherein N≥1 and N is a positive integer; the data operation module also includes a data drilling module, the data drilling module is used to drill data layer by layer according to the drill-down list, the front-end configuration module is used to configure the functions of the system, the visualization module is used to visualize the data returned by the back-end module, the front-end data interaction module is used to transmit user instructions to the back-end module, and the back-end module includes a back-end data interaction module, the back-end data interaction module is used to realize data interaction between the back-end module and the database, and return the processed data to the front-end module. This technical solution utilizes the front-end module to receive user instructions and operates according to the user instructions. The back-end module retrieves and processes data from the underlying data according to the user instructions sent by the front-end module, and then returns the processed data to the front-end module for visual display. The front-end configuration module in the front-end module can accept user configuration and expand functions, solving the problem of difficulty in adding or expanding functions and difficulty in realizing customized functions in the prior art.
[0011] Furthermore, the data operation module includes a data filtering module, a data grouping module and a data sorting module. The data filtering module is used to filter the data, the data grouping module is used to group the data according to the dimension, and the data sorting module is used to sort the data in ascending or descending order.
[0012] Furthermore, the front-end module also includes a front-end extension module, which is used for front-end functional expansion, and the front-end extension module supports Oracle and / or MySQL parsing. This technical solution further adds a front-end extension module, which can further expand the data analysis platform to enable users to customize the functions.
[0013] Furthermore, in the process of drilling data, the data drilling module first obtains a specified number of dimension value data grouped by the first-layer drilled-down dimension field and sorted by the first-layer drilled-down indicator dimension field according to the first-layer information of the drilled-down and the time period requested by the user during the data drilling process; then the above data is filtered to obtain the unique value in the first-layer drilled-down dimension field; then, according to the first and second-layer information of the drilled-down, the dimension fields grouped by the first and second-layer drilled-down are obtained, the time period requested by the user and the unique value of the first-layer dimension field are used as filtering conditions, and the indicator dimension field of the second layer is used to sort, and the second-layer of each first-layer dimension field value is given a value. Assign a specified number of dimension value data; then filter the above data to obtain the unique value of the second-level drill-down dimension field; then according to the first-level, second-level and third-level list information of the drill-down, obtain the first-level, second-level and third-level drill-down dimension fields for grouping, use the time period requested by the user, the unique value of the first-level drill-down dimension field and the unique value of the second-level drill-down dimension field as the filtering condition, sort by the third-level drill-down indicator dimension field, and assign a specified number of dimension value data to the third level of each second-level dimension field value; then filter the data to obtain the unique value of the third-level drill-down dimension field; and so on, until the entire drill-down list is traversed.
[0014] Furthermore, the backend module also includes a backend expansion module, and the backend expansion module is used for expanding the functions of the backend.
[0015] Furthermore, the front-end data interaction module is a Mega Front Lib library.
[0016] The present invention also provides a data analysis method, comprising the following steps:
[0017] S1. The front-end module receives and analyzes the user request and generates an N-layer drill-down list, where N≥1 and N is a positive integer; the front-end module includes a data operation module, which also includes a data drilling module, which is used to drill data layer by layer according to the drill-down list and transmit the data to the back-end module.
[0018] S2. The back-end module processes the data according to the user instructions transmitted by the front-end module, and returns the processed data to the front-end module; the steps of processing data by the back-end module are: the data filtering module filters the data, the data grouping module groups the data according to the dimension, and then the data sorting module sorts the data in ascending or descending order.
[0019] Furthermore, in the process of drilling data, the data drilling module first obtains a specified number of dimension value data grouped by the first-layer drilled-down dimension field and sorted by the first-layer drilled-down indicator dimension field according to the first-layer information of the drilled-down and the time period requested by the user in the process of drilling data; then filters the above data to obtain the unique value in the first-layer drilled-down dimension field; then obtains the grouping of the first-layer and second-layer drilled-down dimension fields according to the first-layer and second-layer information of the drilled-down, takes the time period requested by the user and the unique value of the first-layer dimension field as the filtering condition, sorts the indicator dimension field of the second layer, and gives the second value of each first-layer dimension field value to the second-layer The first layer allocates a specified number of dimension value data; then the above data is filtered to obtain the unique value of the second layer drill-down dimension field; then according to the first layer, second layer and third layer list information of the drill-down, the first layer, second layer and third layer drill-down dimension fields are obtained for grouping, and the time period requested by the user, the unique value of the first layer drill-down dimension field and the unique value of the second layer drill-down dimension field are used as filtering conditions, and the third layer indicator dimension field is sorted, and the third layer of each second layer dimension field value is allocated a specified number of dimension value data; then the data is filtered to obtain the unique value of the third layer drill-down dimension field; and so on, until the entire drill-down list is traversed.
[0020] Furthermore, it also includes an underlying database, and the data in step S2 is retrieved from the underlying database by the back-end module.
[0021] Furthermore, the front-end module converts the user's instructions into SQL standard statements, and splices the converted SQL standard statements to obtain complete SQL statements, which are then transmitted to the back-end module.
[0022] 3. Beneficial effects
[0023] Compared with the prior art, the present invention has the following beneficial effects:
[0024] (1) The present invention adopts the relatively mature front-end and back-end separation development model in the industry, which allows people familiar with both the front-end and back-end to quickly get started, thus saving development costs;
[0025] (2) The present invention can be freely customized by users and is simple and easy to use;
[0026] (3) The present invention can freely customize the interaction logic between the front-end and the back-end according to different business requirements;
[0027] (4) The present invention can freely customize the processing of data streams according to different business requirements, such as adding a series of authentications, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is an architecture diagram of the data analysis platform in the present invention;
[0029] Figure 2 This is a flow chart of front-end and back-end data interaction for the present invention. DETAILED DESCRIPTION
[0030] The present invention will be further described below in conjunction with specific embodiments. First, some terms appearing in the present invention are explained:
[0031] Mega: A custom name, not a standard one. It is the name of an application that integrates business intelligence, data exploration, and web visualization.
[0032] Mega Front-end Lib: Mega front-end static library;
[0033] Mega Back-end Lib: Mega back-end static library;
[0034] Filter, Split and Measure correspond to the three basic functional modules in the data operation module, among which,
[0035] Filter: filtering, mainly operates on dimensional data;
[0036] Dimension: Indicators are used to measure the development level of things. Whether the development level is good or bad, it is necessary to compare it through different dimensions. Dimension is a certain characteristic of things or phenomena, such as gender, region, time, etc., and the data representing the dimension is dimensional data;
[0037] Split: grouping;
[0038] Measure: indicator;
[0039] group by: grouping;
[0040] order by: sort;
[0041] limit: Find the limit on the number of data returned by the SELECT statement;
[0042] JavaScript: a scripting language that runs on the browser;
[0043] SQL: Structured Query Language, a database language with multiple functions such as data manipulation and data definition;
[0044] Oracle: a relational database management system.
[0045] MySQL: a relational database management system;
[0046] Lib (library): There are two types of Lib libraries. One is a static library, such as the C-Runtime library. This type of Lib contains the implementation code of the function and is generally used in static linking. It adds the code in the Lib to the target module (EXE or DLL) file. After the link is completed, the Lib file is useless. One type of Lib is used in conjunction with DLL. There is no code in it. The code is in the DLL. This type of Lib is used for statically calling DLL, and its function is also a link function. The Lib in the present invention refers to a static library.
[0047] JSON: JavaScript Object Notation, JS object notation, is a lightweight data exchange format based on a subset of ECMAScript (JS specification developed by the European Computer Association).
[0048] Presentation layer: It is the bridge between users and systems. On the one hand, it provides users with interactive tools. On the other hand, it also implements certain logic for displaying and submitting data in order to coordinate the operations of users and systems.
[0049] Underlying database or database: A warehouse that organizes, stores and manages data according to data structures.
[0050] Combine the following Figure 1 The present invention is explained in detail. The present invention includes a data analysis method and a data analysis platform. Figure 1This is the architecture diagram of the data analysis platform in the present invention. The entire architecture includes three parts: the front-end module MegaWeb, the back-end module Mega Service and the database Database; wherein, the front-end module Mega Web is mainly used for front-end data display and dynamic module function configuration, which includes a data operation module, a front-end configuration module, a data visualization module, a front-end data interaction module and a front-end extension module. Among them, the front-end configuration module is mainly used to configure the functional modules of the system, specifically including: whether to enable the save function, whether to enable the system data embedding point (the system data embedding point is used to collect the user's operating habits, system performance indicator data, and system error log, so that the system function and performance can be optimized in a targeted manner in the future, which is more in line with user expectations), and whether to support the sharing report function; the visualization module is mainly used to visualize the data returned by the back-end; the data operation module is mainly used to enable the user to freely drag and drop the filter Filter, grouping Split, and indicator Measure on the page to generate standardized SQL statements. More specifically, the user can choose to perform operations such as data filtering, grouping, and indicators. There are corresponding Filter, Split, and Measure operation buttons on the user operation interface. The user can freely drag, pull, and drop the above operation buttons. The data operation module receives user operation instructions and generates standardized SQL statements, and splices the standardized SQL statements generated according to the above instructions into complete SQL statements and transmits them to the back-end module. More specifically, the data operation module is mainly used to receive and parse user requests and generate an N-layer drill-down list, where N≥1 and N is a positive integer; the data operation module also includes a data drilling module, which is used to drill data layer by layer according to the drill-down list.
[0051] In a specific implementation, the data drilling module first obtains a specified number of dimension value data grouped by the first-layer drilled-down dimension field and sorted by the first-layer drilled-down indicator dimension field according to the first-layer information of the drilled-down and the time period requested by the user during the process of drilling-down data; then the above data is filtered to obtain the unique value in the first-layer drilled-down dimension field; then, according to the first-layer and second-layer information of the drilled-down, the dimension fields grouped by the first-layer and second-layer drilled-down are obtained, the time period requested by the user and the unique value of the first-layer dimension field are used as the filtering condition, and the indicator dimension field of the second layer is used to sort, and the second-layer dimension field value of each first-layer dimension field is given a value. The first layer allocates a specified number of dimension value data; then the above data is filtered to obtain the unique value of the second layer drill-down dimension field; then according to the first layer, second layer and third layer list information of the drill-down, the first layer, second layer and third layer drill-down dimension fields are obtained for grouping, and the time period requested by the user, the unique value of the first layer drill-down dimension field and the unique value of the second layer drill-down dimension field are used as filtering conditions, and the third layer indicator dimension field is sorted, and the third layer of each second layer dimension field value is allocated a specified number of dimension value data; then the data is filtered to obtain the unique value of the third layer drill-down dimension field; and so on, until the entire drill-down list is traversed.
[0052] In the specific implementation, the front-end module also includes a front-end extension module and a front-end data interaction module. The front-end data interaction module can realize the data interaction between the front-end module and the back-end module, and transmit the user operation instructions received by the front-end module to the back-end module for processing. More specifically, the front-end data interaction module can directly connect to the data operation module or the front-end extension module, and can also interact with the back-end module through an interface. The front-end extension module is used to realize user-defined extension functions. In the specific implementation, the front-end data interaction module is specifically the Mega Front-end Lib library. The function of the Mega Front-end Lib library is to interact with the Mega Back-end Lib library in the back-end module Mega Service, so that the data returned by the back-end can be presented to the user for visualization; at the same time, the SQL statement can also be passed to the back-end module. In addition, MegaFront-end Lib also reserves an interface for data exchange with the front-end extension module, so that when there is a need to expand the front-end data structure operation in the business, it only needs to be assembled and transmitted according to the pre-defined interface (standard JSON structure, SQL statement), so that the front end can be fully freely expanded. For example, when the business needs to extend Oracle or directly pass a complete SQL statement, you can implement the interface directly within the business at the extension layer and pass it to the backend Mega Back-end Lib library according to the standard interface.
[0053] The backend module Mega Service is used to provide interface services for the frontend and interact with the underlying database to obtain data. The backend module includes a backend extension module and a backend data interaction module. The backend data interaction module is specifically manifested as the Mega Back-end Lib library, in which the function of Mega Back-end Lib is to interact with the underlying database to obtain raw data, and after data processing, return the data structure pre-defined with the frontend to the frontend for data display. In addition, Mega Back-end Lib also reserves an interface for data exchange with the backend extension module, so that when there is a need to expand the backend in the business, it only needs to be assembled and transmitted according to the pre-defined interface, so that the backend can be fully and freely expanded.
[0054] For example, when the business requires permission verification, you only need to implement the corresponding permission verification internally in the extension layer according to business needs, so as to filter the data and return specific data.
[0055] The database is used to store raw data.
[0056] 1. The user performs visual operations in the presentation layer. The front-end module filters, groups, sorts, searches, and stores data according to the operation instructions input by the user. In specific implementation, SQL can be used to implement it, that is, the data operation module in the front-end module receives the user's operation instructions, processes the above operation instructions, and passes the processing results to the back-end module. The data operation module includes a data filtering module, a data grouping module, and a data sorting module. The data filtering module is used to filter the data, the data grouping module is used to group the data according to the dimension, and the data sorting module is used to sort the data in ascending or descending order. The data filtering module filters the data according to the conditions set by the user (such as time, etc.), and the data grouping module groups and sorts the data according to the dimension. If the data queried this time is data of two dimensions within a certain period of time, the data can be grouped according to the two dimensions, and the time period is used as the filtering condition. The data sorting module arranges the above data in ascending or descending order set by the user. In specific implementation, SQL can be used to achieve it, that is, the SQL engine in the data operation module generates corresponding SQL statements for the user's free drag operations on Filter, Split, and Measure, specifically:
[0057] 1.1、Dynamically generate the filtering condition where in the SQL statement based on the user's operation in Filter;
[0058] 1.1.1. When operating on time, for example, filtering only data within a certain period of time;
[0059] WHERE time dimension field >= 'start time'
[0060] AND time dimension field <= 'end time'
[0061] 1.1.2. When filtering by search criteria, for example, only filter apps with app id 'c3a34da99e5244caa1647fbfdfe40ec2';
[0062] AND app_id in['c3a34da99e5244caa1647fbfdfe40ec2']
[0063] 1.2. Dynamically generate group by (grouping), order by (sorting), and limit (searching) in SQL statements based on the user's operations in Split;
[0064] 1.2.1, For example, you need to group the data by time dimension (date_hour) and sort them in descending order of time;
[0065] GROUP BY date_hour
[0066] ORDER BY date_hourdesc
[0067] 1.3. Dynamically generate select values in SQL statements based on user operations in Measure (select is used to select data from a table, and the results are stored in a result table (called a result set));
[0068] 1.3.1, For example, when the user needs to view the display, fill, and click in the income table;
[0069] SELECT date_hour,
[0070] sum(imp)AS imp,
[0071] sum(request)AS request,
[0072] sum(fill)AS fill,
[0073] sum(click)AS click
[0074] FROM revenue_table
[0075] 1.4. Use the JavaScript template engine to process and splice the above operations to generate a complete SQL statement, and pass the generated complete SQL statement to the back-end module through the front-end data interaction module.
[0076] The function of step 1.4 is to assemble all fragmented SQL statement character strings generated by the operations in steps 1.1 to 1.3 into a complete SQL statement according to the SQL grammar structure.
[0077] 2. The front-end module also includes a front-end data interaction module and a front-end extension module. The front-end data interaction module can realize data interaction between the front-end module and the back-end module, and transmit the user operation instructions received by the front end to the back-end for processing. The front-end extension module is used to realize user-defined extension functions.
[0078] 2.1. The front-end data interaction module is mainly used for users to process data interaction between the front-end and back-end, such as passing the SQL statements generated in the above steps to the back-end. The specific implementation can be implemented by Mega Front-end Lib.
[0079] 2.2. The front-end extension module is used to implement user-defined extension functions. When the business system has customized requirements, such as extended support for Oracle, MySQL, or other types of data formats (such as: comma-separated text data, etc.) parsing, or even supporting the business to directly write SQL statements, all can be achieved through the extension module. Specifically: in the provided extension layer, according to the interface model defined by Mega front-end lib, it is passed to the lib library, which can conveniently complete the middle-layer support for customized requirements and perform customized processing, thereby satisfying the front-end personnel with customized business requirements for functional expansion.
[0080] 2.2.1、Predefine the data structure for interaction between the extension module and Mega Front-end Lib, including data structure, Filter structure, Split structure and Measure structure.
[0081] 2.2.2. In the extension module, users can freely add functions, such as adding an SQL input box for naked SQL writing. To add, you only need to pass the SQL statement as a parameter into the structure and call the Mega Front-end lib library to easily implement the extension.
[0082] 3. The back-end module includes the back-end data interaction module and the back-end extension module. The back-end data interaction module is used to implement data interaction with the underlying database Database and return to the front-end module a data structure that matches the front-end data structure. The back-end extension module is used to provide back-end extension functions so that people with back-end customized business needs can extend the back-end. Specifically:
[0083] 3.1. The back-end data interaction module is used to obtain the original data from the underlying data and convert it into the data structure agreed with the front-end. The specific implementation can be implemented by using Mega Back-end Lib.
[0084] 3.2. The back-end extension module is used to provide back-end extension functions. When the business system has customized requirements, such as authentication, you can perform corresponding permission verification and processing in the provided back-end extension module according to the permission requirements in your own business system, and finally pass the processing results to Mega Back-end lib for subsequent process processing.
[0085] The following uses backend extended authentication as an example to illustrate: Figure 2 As shown, when a user accesses the front-end module, the first step is system initialization. When there is extended user authentication, it will first send an authentication request to the permission authentication module of the back-end extension module in the back-end module through MegaFront-end Lib. The back-end extension module verifies the permissions of the current user. In the permission authentication, the user's permissions can be verified, such as determining whether the current user can access this platform. This can well ensure the security of the platform and data. Regardless of whether the verification is successful or not, the authenticated data structure is passed to MegaBack-end Lib. When the authentication fails, it returns directly to the front-end module, and the front-end module directly enters unauthorized access; if the authentication is successful, it returns the data set configuration of the user's permissions, completes the page initialization process of the front-end module, and waits for the user's next operation;
[0086] After a series of drag-and-drop operations by the user in the data operation module, the data is converted into a formatted data structure that meets the pre-defined requirements and passed to MegaFront-end Lib. After that, an authentication request provided by a third-party system is initiated to the back-end extension module (authority authentication). When the authentication fails, it is directly returned to the front-end module, and the front-end module directly feedbacks the user that there is no permission to access. When the authentication succeeds, the database can be queried to obtain the original data, and based on the authentication result, the data that meets the user's authority is returned. It should be noted that every data request initiated by the front-end module after the front-end module is initialized will pass through the authority authentication center, that is, many custom extension processing and interception of the data can be performed here.
[0087] Next, further data processing is performed on the original data in Mega Back-end Lib, such as filtering invalid data, filling missing data, performing data comparison operations, etc. Finally, the processed data is returned to Mega Front-end Lib. In this step, due to different visualization display forms, the requirements for data structure are not consistent. For example, drill-down tables, line charts, heat maps, etc. have different requirements for data formats. Therefore, according to the type of visualization that the user needs to display, the data is processed twice in Mega Front-end Lib, and then the formatted data is returned to the data visualization module, and finally the data that meets the user's needs is presented to the user in a visual form.
Claims
1. A data analysis platform, Features: It includes a front-end module and a back-end module, wherein the front-end module includes a data operation module, a front-end configuration module, a data visualization module, and a front-end data interaction module, wherein the data operation module is mainly used to receive and parse user requests and generate an N-layer drill-down list, wherein N≥1, and N is a positive integer; the data operation module also includes a data drilling module, wherein the data drilling module is used to drill data layer by layer according to the drill-down list, the front-end configuration module is used to configure the functions of the system, the data visualization module is used to visualize the data returned by the back-end module, the front-end data interaction module is used to transmit user instructions to the back-end module, and the back-end module includes a back-end data interaction module, wherein the back-end data interaction module is used to realize data interaction between the back-end module and the database, and at the same time returns the processed data to the front-end module; in the process of drilling data, the data drilling module first obtains a specified number of dimension values grouped by the first-layer drill-down dimension field and sorted by the first-layer drill-down indicator dimension field according to the first-layer information of the drill-down and the time period requested by the user as the filtering condition. Data; then the above data is filtered for duplicates to obtain the unique values in the first-layer drill-down dimension fields; then according to the first and second-layer information of the drill-down, the dimension fields of the first and second layers are obtained for grouping, the time period requested by the user and the unique value of the first-layer dimension field are used as filtering conditions, the indicator dimension field of the second layer is sorted, and the second layer of each first-layer dimension field value is assigned a specified number of dimension value data; then the above data is filtered for duplicates to obtain the unique values of the second-layer drill-down dimension fields; then according to the first, second and third-layer list information of the drill-down, the first, second and third layers are obtained for grouping, the time period requested by the user, the unique value of the first-layer drill-down dimension field and the unique value of the second-layer drill-down dimension field are used as filtering conditions, the indicator dimension field of the third layer is sorted, and the third layer of each second-layer dimension field value is assigned a specified number of dimension value data; then the data is filtered for duplicates to obtain the unique values of the third-layer drill-down dimension fields; and so on, until the entire drill-down list is traversed.
2. The data analysis platform according to claim 1, Features: The data operation module includes a data filtering module, a data grouping module and a data sorting module. The data filtering module is used to filter the data, the data grouping module is used to group the data according to the dimension, and the data sorting module is used to sort the data in ascending or descending order.
3. The data analysis platform according to claim 2, Features: The front-end module also includes a front-end extension module, which is used for extending the functions of the front-end, and the front-end extension module supports the analysis of Oracle and / or MySQL.
4. The data analysis platform according to any one of claims 1 to 3, Features: The backend module also includes a backend expansion module, and the backend expansion module is used for expanding the functions of the backend.
5. The data analysis platform according to any one of claims 1 to 3, Features: The front-end data interaction module is the Mega Front Lib library.
6. A data analysis method, Features: The following steps are involved: S1. The front-end module receives and analyzes the user request and generates an N-layer drill-down list, where N≥1 and N is a positive integer; the front-end module includes a data operation module, which also includes a data drilling module, and the data drilling module is used to drill data layer by layer according to the drill-down list; S2. The back-end module processes the data according to the user instructions transmitted by the front-end module, and returns the processed data to the front-end module; the steps of processing data by the back-end module are as follows: the data filtering module filters the data, the data grouping module groups the data according to the dimension, and then the data sorting module sorts the data in ascending or descending order; in the process of drilling data, the data drilling module first obtains the specified number of dimension value data grouped by the first-layer drilled-down dimension field and sorted by the first-layer drilled-down indicator dimension field according to the first-layer information of the drilled-down and the time period requested by the user; then the above data is filtered to obtain the unique value in the first-layer drilled-down dimension field; then, according to the first and second layers of the drilled-down information, the dimension value data grouped by the first and second layers of the drilled-down dimension field are obtained, and the time period requested by the user is used as the filtering condition. The time period and the unique value of the first-layer dimension field are used as filtering conditions, and the indicator dimension field of the second layer is used to sort, and a specified number of dimension value data is assigned to the second layer of each first-layer dimension field value; then the above data is filtered to obtain the unique value of the second-layer drill-down dimension field; then according to the first-layer, second-layer and third-layer list information of the drill-down, the drill-down dimension fields of the first layer, second layer and third layer are obtained for grouping, and the time period requested by the user, the unique value of the first-layer drill-down dimension field and the unique value of the second-layer drill-down dimension field are used as filtering conditions, and the indicator dimension field of the third layer is used to sort, and a specified number of dimension value data is assigned to the third layer of each second-layer dimension field value; then the data is filtered to obtain the unique value of the third-layer drill-down dimension field; and so on, until the entire drill-down list is traversed.
7. The data analysis method according to claim 6, Features: It also includes an underlying database, and the data in step S2 is retrieved from the underlying database by the back-end module.
8. The data analysis method according to claim 6 or 7, Features: The front-end module converts the user's instructions into SQL standard statements, and splices the converted SQL standard statements to obtain complete SQL statements, which are then transmitted to the back-end module.
Citation Information
Patent Citations
Data analysis method, data analysis platform and server
CN106649426A
Vue+SpringCloud-based cloud platform
CN110430173A
Business data analysis method and platform
CN112131302A
Business data analysis system
CN104408170A
