A method for dynamically calling a data viewing engine
By dynamically calling a single machine or multi-server cluster engine to process data of different amounts, it solves the problem of resource waste in big data scenarios, improves data viewing and modeling efficiency, and supports more concurrent users.
Patent Information
- Application Number
- CN202210008534.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-06
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-01-06
AI Technical Summary
In big data scenarios, frequent viewing and processing of large amounts of data leads to a waste of network resources and computing resources, resulting in low modeling efficiency and weak user concurrency.
Provide a method to dynamically call the data viewing engine, dynamically select the computing engine of a single server or a multi-server cluster according to user demand scenarios, process different amounts of data, fetch part of the data during preview, and fetch all data during execution to improve resource utilization efficiency.
By dynamically calling different computing engines, we can reduce resource waste, improve data viewing efficiency, improve modeling efficiency, support more concurrent users, and optimize resource utilization.
Smart Images

Figure CN114357031B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method for dynamically calling a data viewing engine. Background Art
[0002] In the big data scenario, it is common and important to mine valuable rules from large and complex data through data mining modeling. Data mining is a hot topic in the field of artificial intelligence and database research. The so-called data mining refers to the non-trivial process of revealing implicit, previously unknown and potentially valuable information from a large amount of data in the database. Data mining is a technology that analyzes each data and finds its rules from a large amount of data. It mainly includes three steps: data preparation, rule finding and rule expression. Data preparation is to select the required data from relevant data sources and integrate them into a data set for data mining; rule finding is to find the rules contained in the data set by some method; rule expression is to express the found rules in a way that users can understand as much as possible. The tasks of data mining include association analysis, cluster analysis, classification analysis, anomaly analysis, specific group analysis and evolution analysis. Since data mining is not done overnight, users need to go through a lot of attempts, and 80% of the work is to clean, process, and test model a large amount of data. In this process, users need to frequently check the data generated after the operation to understand the progress of the work. However, users check data frequently and the amount of data involved is usually large. In big data scenarios, the amount of data is often in GB or even PB level. Calculating data of this magnitude requires large-scale server cluster resources. Frequently checking large amounts of data will consume a lot of network resources and computing resources, and the speed of reading all data will be relatively low, resulting in low modeling efficiency and weak user concurrency.
[0003] To this end, we propose a method for dynamically calling the data viewing engine. Summary of the invention
[0004] In view of the above problems and / or the problems existing in the existing method for dynamically calling a data viewing engine, the present invention is proposed.
[0005] Therefore, the purpose of the present invention is to provide a method for dynamically calling a data viewing engine. By providing different computing engines for different user demand scenarios during the data mining process, and processing different amounts of data respectively, the waste of network resources and computing resources caused by frequently reading and viewing all data in data mining is solved, the efficiency of viewing data is improved, and thus the improvement of modeling efficiency is promoted.
[0006] To solve the above technical problems, according to one aspect of the present invention, the present invention provides the following technical solutions:
[0007] A method for dynamically calling a data viewing engine comprises the following specific steps:
[0008] S1, read the data table for analysis: the user reads the data table to be analyzed from the data source through a programming language, wherein the programming language is one of SQL, R, and Python;
[0009] S2, establish different computing processing engines to process different levels of data for preview and execution. Preview is to take part of the data for processing, and execution is to take all the data for processing. The resources used for preview are single-machine server configurations, which have low resource consumption and support a large number of concurrent users. The execution of all data is based on the distributed computing engine of Hadoop with multiple servers. The resources used for execution are server cluster configurations, which have high resource consumption and a small number of concurrent users. Different processing engines at two levels are initialized according to the two configurations to provide data processing support for subsequent user operations. The amount of data processed by the server cluster is more than 10,000 records. When the server cluster needs to increase concurrency, the server configuration needs to be increased;
[0010] S3, users choose the way to view the results based on the data processing, data exploration, and data modeling operations to be performed: users use programming languages to process data, that is, to perform various operations between rows or columns, including removing missing values, deriving new fields, generating graphics, and finding and quantifying specific patterns from data. When performing operations, users will face the following three operation scenarios:
[0011] Scenario 1: The user processes the data and wants to view the results of the data processing;
[0012] Scenario 2: User data generates visualization graphs and charts, and you want to view the visualization results;
[0013] Scenario 3: Users use data mining algorithms to apply all data for modeling;
[0014] S4, for three user scenarios, the requirements for viewing data are different:
[0015] In scenario 1, the purpose of users viewing data is to confirm whether the operation results are correct and valid. In this case, considering the large amount of data, users only need to view part of the data, that is, they can understand whether the operation results are correct and valid through preview.
[0016] For scenario 2, the generation of graphics and reports requires the use of all data;
[0017] For scenario 3, the process of applying data mining algorithms to model requires all data, so all data is required to view the modeling results;
[0018] S5, calls different computing engines provided by S2 to view data according to different user scenarios to improve resource utilization efficiency;
[0019] If the operation is scenario 1, the first n pieces of data are extracted from all the data, which can be configured according to the user's choice. In this case, the amount of data is small, and the calculation engine configured by the single-machine server can be used for calculation, that is, all the selected data is handed over to one server for calculation, and the calculation results are returned and provided to the user for preview;
[0020] If the operation is scenario 2 or scenario 3, the server cluster class is used for calculation, that is, all data is divided into several small blocks, and each server in the cluster is assigned a task of one block. After the tasks are completed separately, the results of each block are summarized to form the results of all data, and the results are provided to the user for viewing;
[0021] S6, displaying the calculation result of S5 to the user for viewing.
[0022] As a preferred solution of the method for dynamically calling a data viewing engine described in the present invention, wherein: in S2, the processing engine is a preview engine and an execution engine.
[0023] As a preferred solution of the data viewing engine dynamic calling method described in the present invention, wherein: in S2, the single-machine server configuration processes a small amount of data, while the server cluster processes a large amount of data.
[0024] Compared with existing technologies:
[0025] 1. The user uses a programming language to read the data table to be analyzed from the data source, where the programming language is one of SQL, R, and Python, to obtain the data table to be read for analysis. After reading, different computing execution engines are established to process different levels of data for preview and execution. Preview is to take part of the data for execution, and execution is to take all the data for execution. The resources used for preview can be configured as a single server, with low resource consumption and support for a large number of concurrent users. The execution of all data is a distributed computing engine based on multi-server Hadoop, which is a server cluster, with high resource consumption and a small number of concurrent users. The execution engines of different levels are initialized according to this configuration. , thereby providing data processing support for subsequent user operations. Users use programming languages to process data, that is, to perform various operations between rows or columns. When performing operations, users will face the following three operation scenarios: Scenario 1, the user has processed the data and wants to view the results of the data processing; Scenario 2, the user data generates visual graphics, charts, etc., and wants to view the visual results; Scenario 3, the user uses data mining algorithms to apply all data for modeling, so that the user can choose to view the results of the operations such as data processing, data exploration, and modeling to be performed. Among them, for scenario 1, the purpose of the user viewing the data is to confirm whether the operation results are correct and valid. In this case, the consideration Considering that the amount of data is very large, users only need to view part of the data, that is, they can know whether the results of the operation are correct and effective through preview; for scenario two, since the generation of graphics and reports requires all the data, these operations require all the data to be implemented; for scenario three, the process of applying data mining algorithms to model requires all the data, so viewing the modeling results requires all the data to be implemented, and different calculation execution engines are called for different user scenarios, so that data viewing can be achieved according to different calculation engines to improve resource utilization efficiency; if the operation is scenario one, the first n data are extracted from all the data, which can be configured according to the user's choice. Due to the small amount of data, The calculation engine configured with a single server can be used for calculation, that is, all the selected data is handed over to one server for calculation, and the calculation results are returned and provided to the user for preview; if the operation is scenario 2 or scenario 3, the server cluster class is used for calculation, that is, all the data is divided into several small blocks, and each server in the cluster is assigned one of the tasks. After the tasks are executed separately, the results of each block are summarized to form the results of all the data, and the results are provided to the user for viewing, thereby realizing the dynamic and efficient application of limited computing resources while satisfying the normal viewing of users, promoting resource conservation and efficient utilization, and supporting more calculations with the same resources;
[0026] 2. The present invention improves the efficiency of viewing data. Compared with the single-threaded computing engine, the distributed computing engine adds data segmentation and resource management processes during the computing process. For small data volumes, these processes increase the burden. Therefore, for computing small data volumes, the single-threaded engine is more effective.
[0027] 3. The present invention makes more efficient use of existing computing resources and better meets the computing needs of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0029] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0030] The present invention provides a data viewing engine dynamic calling method, which has the effect of improving the reading speed and detection efficiency of all data, please refer to Figure 1 , including the following specific steps:
[0031] S1, reading a data table for analysis: a user reads a data table for analysis from a data source using a programming language, wherein the programming language is one of SQL, R, and Python;
[0032] S2, establish different computing processing engines (with different allocation of computer CPU and memory resources) to process different levels of data for preview and execution. Preview is to take part of the data (configurable, and the data range is set to 100 to 100,000 records) for processing, and execution is to take all the data for processing. The resources used for preview are single-machine server configurations, which have low resource consumption and support a large number of concurrent users. The execution of all data is based on the distributed computing engine of Hadoop with multiple servers. The resources used for execution are server cluster configurations, which have high resource consumption and a small number of concurrent users (if concurrency needs to be increased, server configuration needs to be increased). According to the two configurations, two different levels of processing engines (preview engine and execution engine) are initialized to provide data processing support for subsequent user operations. Among them, the single-machine server configuration is used to process small data volumes, while the server cluster is used to process large data volumes (at least 10,000 records).
[0033] S3, users choose the way to view the results for the data processing, data exploration, modeling and other operations to be performed: users use programming languages to process data, that is, to perform various operations between rows or columns, such as removing missing values (deleting rows with missing values in any column from all data), deriving new fields (generating new columns by performing mathematical operations between two or more columns), generating graphs (drawing graphs using specified columns), and modeling (finding and quantifying specific patterns from data). When performing operations, users will face the following three operation scenarios:
[0034] Scenario 1: The user processes the data and wants to view the results of the data processing;
[0035] Scenario 2: User data generates visualization graphs and charts, and you want to view the visualization results;
[0036] Scenario 3: Users use data mining algorithms to apply all data for modeling;
[0037] S4, for three user scenarios, the requirements for viewing data are different:
[0038] In scenario 1, the purpose of users viewing data is to confirm whether the operation results are correct and valid. In this case, considering the large amount of data, users only need to view part of the data, that is, they can understand whether the operation results are correct and valid through preview.
[0039] For scenario 2, the generation of graphics and reports requires the use of all data;
[0040] For scenario 3, the process of applying data mining algorithms to model requires all data, so all data is required to view the modeling results;
[0041] S5, calls different computing engines provided by S2 to view data according to different user scenarios to improve resource utilization efficiency;
[0042] If the operation is scenario 1, the first n data are extracted from all the data, which can be configured according to the user's choice (the data range is set to 100 to 100,000 records). At this time, the amount of data is small, and the calculation engine configured by the single-machine server can be used for calculation, that is, all the selected data is handed over to one server for calculation, and the calculation results are returned and provided to the user for preview;
[0043] If the operation is scenario 2 or scenario 3, the server cluster class is used for calculation, that is, all data is divided into several small blocks, and each server in the cluster is assigned a task of one block. After the tasks are completed separately, the results of each block are summarized to form the results of all data, and the results are provided to the user for viewing;
[0044] S6, displaying the calculation result of S5 to the user for viewing.
[0045] Although the present invention has been described above with reference to the embodiments, various modifications may be made thereto and parts thereof may be replaced by equivalents without departing from the scope of the present invention. In particular, as long as there is no structural conflict, the various features in the embodiments disclosed in the present invention may be used in combination with each other in any manner, and the fact that these combinations are not exhaustively described in this specification is only for the sake of omitting space and saving resources. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. A method for dynamically calling a data viewing engine, characterized in that: The specific steps are as follows: S1, read the data table for analysis: the user reads the data table to be analyzed from the data source through a programming language, wherein the programming language is one of SQL, R, and Python; S2, establish different computing processing engines to process different levels of data for preview and execution. Preview is to take part of the data for processing, and execution is to take all the data for processing. The resources used for preview are single-machine server configurations, which have low resource consumption and support a large number of concurrent users. The execution of all data is based on the distributed computing engine of Hadoop with multiple servers. The resources used for execution are server cluster configurations, which have high resource consumption and a small number of concurrent users. Different processing engines at two levels are initialized according to the two configurations to provide data processing support for subsequent user operations. The amount of data processed by the server cluster is more than 10,000 records. When the server cluster needs to increase concurrency, the server configuration needs to be increased; S3, users choose the way to view the results according to the data processing, data exploration, and data modeling operations to be performed. Data processing refers to the user using programming languages to process data, that is, to perform various operations between rows or columns, including removing missing values and deriving new fields. Data exploration refers to generating graphics, including drawing using specified columns. Data modeling refers to finding and quantifying specific rules from data. When performing operations, users will face the following three operation scenarios: Scenario 1: The user processes the data and wants to view the results of the data processing; Scenario 2: User data generates visualization graphs and charts, and you want to view the visualization results; Scenario 3: Users use data mining algorithms to apply all data for modeling; The requirements for viewing data are different for the three user scenarios: In scenario 1, the purpose of users viewing data is to confirm whether the operation results are correct and valid. In this case, considering the large amount of data, users only need to view part of the data, that is, they can understand whether the operation results are correct and valid through preview. For scenario 2, the generation of graphics and reports requires the use of all data; For scenario 3, the process of applying data mining algorithms to model requires all data, so all data is required to view the modeling results; S4, calls different computing engines provided by S2 to view data according to different user scenarios to improve resource utilization efficiency; If the operation is scenario 1, the first n pieces of data are extracted from all the data, which can be configured according to the user's choice. In this case, the amount of data is small, and the calculation engine configured by the single-machine server can be used for calculation, that is, all the selected data is handed over to one server for calculation, and the calculation results are returned and provided to the user for preview; If the operation is scenario 2 or scenario 3, the server cluster class is used for calculation, that is, all data is divided into several small blocks, and each server in the cluster is assigned a task of one block. After the tasks are completed separately, the results of each block are summarized to form the results of all data, and the results are provided to the user for viewing; S5, displaying the calculation result of S4 to the user.
2. A data viewing engine dynamic calling method according to claim 1, characterized in that: In S2, the processing engine is a preview engine and an execution engine.
