Data management method and system
The measurement point information index table is generated through breakpoint resumption and scheduled analysis tasks, which solves the problem of inefficiency of the data management system in processing large-scale unstructured data, realizes efficient storage and rapid access of data, and improves the use of the system. efficiency and user experience.
Patent Information
- Application Number
- CN202411011079.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing data management systems have low storage and processing efficiency when dealing with large amounts of unstructured data generated by mechanical vibration tests, resulting in long reading and parsing times and possible memory shortages.
The test data file is sent to the server by resuming the breakpoint, and the data parsing task is started regularly on the server side, and the measurement point information index table of the test data file is generated to achieve efficient storage and quick access of the data.
Through preprocessing and establishing efficient indexes, fast storage and access of data is achieved, memory usage is reduced, and system usage efficiency and user experience are improved.
Smart Images

Figure CN118535533A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a data management method and system. Background Art
[0002] Various types of equipment, such as satellites, components, or electromechanical systems, will undergo a large number of vibration tests during the integration, function debugging, performance debugging, and index recovery processes.
[0003] Different stages, different test states, different scene conditions, and different measurement points will generate a large amount of data, especially time domain data, and even some single files may reach GB or more.
[0004] How to solve the problem of efficient storage and processing of the above-mentioned mechanical test file data is an important key technology to improve the efficiency of system use, and is also an effective technical approach to enhance the system's value and user experience.
[0005] In traditional data management systems, data files are usually parsed and stored in tables in relational databases. Indexes and other mechanisms are established in the data tables to facilitate data retrieval and extraction.
[0006] However, in mechanical vibration tests, the traditional relational database is not applicable because the data files collected by the hardware are large and not standard structured data.
[0007] In addition, since the data also needs to be stored in original files for subsequent use, it would take a long time and be very costly to transform and store all the data in a relational database.
[0008] Therefore, in existing data management systems, data files are often stored on hard disks, and a large amount of time is spent extracting and parsing the data before using it, and the data is cached.
[0009] However, this leads to two problems: on the one hand, it takes a long time to read and parse the data; on the other hand, a large amount of cached data may be invalid and cause insufficient memory. Summary of the invention
[0010] The purpose of the embodiments of the present invention is to provide a data management method and system, which can solve at least one of the above problems existing in the existing data management systems.
[0011] In order to solve the above technical problems, the present invention provides the following technical solutions: An embodiment of the present invention provides a data management method, wherein the method includes: The client receives the test data file uploaded by the user, and sends the test data file to the server in a breakpoint-resume manner; The server adds a new record item in the test data file general information table in the database according to the test data file name, and uploads the test data file to the file system; The server starts the data parsing task regularly, obtains unprocessed record items and reads each unprocessed record item in sequence; For each of the unprocessed record items, locate the corresponding target test data file from the file system; The target test data file is parsed to generate a test data file measurement point information index table which is written into the database, and the parsing process information obtained by the file parsing is added to the corresponding unprocessed record item, wherein the test data file measurement point information index table includes: measurement point information in the test data file, file starting position, and frequency interval.
[0012] Optionally, the step of adding a new record item in the test data file general information table in the database according to the test data file name by the server includes: The server extracts general information from the test data file name, wherein the general information includes: model name, test direction, test level and serial number under the test level; A record item is generated based on the overall information and is added to the overall information table of the test data file in the database.
[0013] Optionally, each record item in the test data file overall information table includes the following fields: identification, test file name, status, file type, upload time, file size, storage path, test type, model name, test direction, test magnitude, test rounds and parsing process information.
[0014] Optionally, the test data file measuring point information index table includes the following fields: identification, file name ID, measuring point name, starting point position and frequency interval.
[0015] Optionally, after the step of parsing the target test data file to generate a test data file measuring point information index table and writing the index table into the database, the method further includes: The client receives search information set by the user, wherein the search information includes: model name, working condition and measurement point information; The client sends a search request to the server, wherein the search request carries the search information; The server responds to the search request, searches the test data file general information table according to the model name and the working condition, and determines the test data file identifier; Querying the test data file measuring point information index table managed in the database to obtain file block information corresponding to the measuring point information, wherein the file block information includes: starting information of the measuring point and starting information of the next measuring point; Loading a target file from the file system according to the file block information; Parsing the target file using a parsing rule that matches the target file type to obtain target test data; The target test data is fed back to the client.
[0016] The embodiment of the present invention further provides a data management system, wherein the system includes a client and a server: The client comprises: The first receiving module is used to receive the test data file uploaded by the user, and send the test data file to the server in a breakpoint resume mode; The server comprises: A new adding module, used for adding a new record item in the test data file general information table in the database according to the test data file name, and uploading the test data file to the file system; The task analysis module is used to start the data analysis task at a fixed time, obtain unprocessed record items and read each unprocessed record item in sequence; for each unprocessed record item, locate the corresponding target test data file from the file system; An adding module is used to parse the target test data file to generate a test data file measurement point information index table and write it into the database, and add the parsing process information obtained by file parsing to the corresponding unprocessed record item, wherein the test data file measurement point information index table includes: measurement point information in the test data file, file starting position, and frequency interval.
[0017] Optionally, the newly added module includes: An extraction submodule, used to extract overall information from the test data file name, wherein the overall information includes: model name, test direction, test level and serial number under the test level; The record item adding submodule is used to generate a record item based on the overall information and add it to the overall information table of the test data file in the database.
[0018] Optionally, each record item in the test data file overall information table includes the following fields: identification, test file name, status, file type, upload time, file size, storage path, test type, model name, test direction, test magnitude, test rounds and parsing process information.
[0019] Optionally, the test data file measuring point information index table includes the following fields: identification, file name ID, measuring point name, starting point position and frequency interval.
[0020] Optionally, the client further includes: a second receiving module, configured to receive search information set by a user after the adding module parses the target test data file to generate a test data file measuring point information index table and writes it into the database, wherein the search information includes: model name, working condition and measuring point information; A request sending module, used for sending a search request to the server, wherein the search request carries the search information; The server also includes: A response module, used to respond to the search request, query the test data file general information table according to the model name and the working condition, and determine the test data file identifier; A query module, used to query the test data file measuring point information index table managed in the database, and obtain the file block information corresponding to the measuring point information, wherein the file block information includes: the starting information of the measuring point and the starting information of the next measuring point; A loading module, used for loading a target file from the file system according to the file block information; A file parsing module, used to parse the target file using a parsing rule matching the target file type to obtain target test data; A feedback module is used to feed back the target test data to the client.
[0021] According to the data management solution provided by the embodiment of the present invention, a client receives a test data file uploaded by a user, and sends the test data file to a server by using a breakpoint-resume transmission method; the server adds a record item in a test data file general information table in a database according to the test data file name, and uploads the test data file to a file system; the server starts a data parsing task at a fixed time, obtains unprocessed record items, and reads each unprocessed record item in turn; for each unprocessed record item, locates the corresponding target test data file from the file system; parses the target test data file to generate a test data file measurement point information index table, writes it into a database, and adds the parsing process information obtained by parsing the file to the corresponding unprocessed record item.
[0022] The data management solution provided by the embodiment of the present invention, on the one hand, designs a test data record item position index and a key information data structure according to the semi-structured characteristics of data in the test data file, performs data preprocessing on the test data file uploaded by the user based on the designed data structure, and establishes an efficient index for the test data file, thereby realizing efficient storage of data; on the second hand, based on the established efficient index of the test data file, when the user subsequently retrieves the test data, the target data can be quickly located and returned, thereby realizing efficient access to the test data; on the third hand, since only the test data file measurement point information index and the record items corresponding to the test data file are cached in the early stage, the cached data volume is small, which can save memory space. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a flowchart showing the steps of a data management method according to an embodiment of the present application; Figure 2 is a schematic diagram showing a data storage structure of an embodiment of the present application; Figure 3 It is a schematic diagram showing the structure of a test data file general information table and a test data file measurement point detailed information index table of an embodiment of the present application; Figure 4 is a schematic diagram showing the working principle of data storage of the data management system of an embodiment of the present application; Figure 5 is a schematic diagram showing the structure of a record item in an embodiment of the present application; Figure 6 is a schematic diagram showing the partial contents of a test data file of an embodiment of the present application; Figure 7 It is a schematic diagram showing the structure of the record items and the test data file measurement point information index table after the analysis process information is written in the embodiment of the present application; Figure 8 is a schematic diagram showing the working principle of data access by the data management system of an embodiment of the present application; Fig. 9 It is a structural block diagram of a data management system according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0025] The data management solution provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0026] In order to solve the above-mentioned problems existing in the existing data management systems, the data management solution provided in the embodiment of the present application designs the test data item position index and key information data structure according to the semi-structured characteristics of the data in the test data file, proposes a trigger-based data preprocessing mechanism, and combines the dynamic data loading method to realize efficient storage and access of data.
[0027] The core of the overall system is a set of data storage and file upload parsing processes to establish efficient indexing and a technical solution for locating and returning data (i.e. data access) in response to user searches.
[0028] As attached Figure 1 As shown, the data management method of the embodiment of the present application includes the following steps: Step 101: The client receives the test data file uploaded by the user, and sends the test data file to the server by using the breakpoint resume method.
[0029] Sending test data files by breakpoint-resume transmission can improve file transmission efficiency and avoid file packet loss, which may lead to test data loss.
[0030] In the embodiment of the present application, the management of a test data file uploaded by a user is used as an example to illustrate. In the actual implementation process, the above process can be repeatedly executed to manage each test data file uploaded by the user. Among them, the management of the test data file includes: structured storage of the file and access to all or part of the test data in the file. Test data file Step 102: The server adds a new record item in the test data file general information table in the database according to the test data file name, and uploads the test data file to the file system.
[0031] The file system may be a hard disk file system.
[0032] An optional method for the server to add a new record item in the test data file general information table in the database according to the test data file name may be as follows: The server extracts the overall information from the test data file name, generates a record item based on the overall information, and adds it to the test data file overall information table in the database.
[0033] The overall information includes: model name, test direction, test level and serial number under the test level.
[0034] In the embodiment of the present application, in order to achieve rapid positioning and retrieval, and in combination with the internal structure characteristics and data composition of the test file, the following is designed Figure 2 The data storage structure shown in: The database core on the left stores the test data file general information table and the test data file measurement point detailed information index table. Its structure is shown in the attached figure. Figure 3 shown.
[0035] The test data file overall information table contains multiple record items, each record item corresponds to a test data file uploaded by the user, and each record item in the test data file overall information table includes the following fields: identification, test file name, status, file type, upload time, file size, storage path, test type, model name, test direction, test magnitude, test rounds, and analysis process information.
[0036] The test data file measurement point information index table includes the following fields: identification, file name ID, measurement point name, starting point position and frequency interval.
[0037] After uploading the test data file to the file system, the upload completion information can be returned to the client so that the user can know that the uploaded test data file has been successfully uploaded.
[0038] Step 103: The server starts the data parsing task regularly, obtains unprocessed record items and reads each unprocessed record item in sequence.
[0039] A timed start trigger may be set in the server, and the trigger processes each unprocessed record item added to the database based on a preprocessing mechanism.
[0040] The time interval for the timed start can be flexibly set by those skilled in the art, and is not specifically limited in the embodiments of the present application.
[0041] Step 104: For each unprocessed record item, locate the corresponding target test data file from the file system.
[0042] For the test data files uploaded by users, the server generates corresponding record items for the test data files and adds the record items to the test data file general information table maintained in the database. When the data parsing task is started regularly, each unprocessed record item is read from the test data file general information table in turn.
[0043] The server not only generates corresponding record items for the test data file, but also uploads the test data file to the file system so as to subsequently parse the starting position of each file block contained in the test data file in the file system.
[0044] Step 105: parse the target test data file to generate a test data file measurement point information index table and write it into a database, and add the parsing process information obtained by parsing the file to the corresponding unprocessed record item.
[0045] The test data file measurement point information index table includes: measurement point information in the test data file, the file start position, and the frequency interval.
[0046] When parsing the target test data file, data is obtained from a specific position as the specific parameter value of the analysis. The specific parameters of the analysis include: starting frequency, frequency interval, amplitude, etc. When parsing the target test data file, the amplitude is arranged from left to right and from top to bottom. The number of frequencies will be automatically calculated based on the number of amplitudes.
[0047] Through the above steps 101 to 105, the process of efficiently storing a test data file uploaded by the user can be completed. In this process, a test data file measurement point information index table is established for the test data file. Through the index table, the file block in the file system can be quickly located, thereby realizing fast access to the test data file.
[0048] In an optional embodiment, after the target test data file is parsed to generate a test data file measuring point information index table and the table is written into the database, the following steps of quickly accessing the test data file may also be included: S1: The client receives the search information set by the user.
[0049] The search information includes: model name, working condition and measuring point information; S2: The client sends a retrieval request to the server.
[0050] The search request carries search information.
[0051] S3: The server responds to the search request, queries the overall information table of the test data file according to the model name and working condition, and determines the test data file identifier.
[0052] S4: querying the test data file measuring point information index table managed in the database to obtain file block information corresponding to the measuring point information.
[0053] The file block information includes: the starting information of the measuring point and the starting information of the next measuring point.
[0054] S5: Load the target file from the file system according to the file block information.
[0055] S6: parsing the target file using a parsing rule that matches the target file type to obtain target test data; S7: Feedback the target test data to the client.
[0056] This optional way of accessing the test data file can quickly locate the target test data corresponding to the queried measurement point from the file system through the pre-established index relationship, which can improve the test data file access efficiency and enhance the user's access experience.
[0057] The data management method provided by the embodiment of the present application comprises the following steps: a client receives a test data file uploaded by a user, and sends the test data file to a server by using a breakpoint-resume transmission method; the server adds a record item to a test data file general information table in a database according to the test data file name, and uploads the test data file to a file system; the server starts a data parsing task at a fixed time, obtains unprocessed record items, and reads each unprocessed record item in turn; for each unprocessed record item, locates the corresponding target test data file from the file system; parses the target test data file to generate a test data file measurement point information index table, writes it into a database, and adds the parsing process information obtained by parsing the file to the corresponding unprocessed record item.
[0058] The data management method provided in the embodiment of the present application, on the one hand, designs a test data record item position index and a key information data structure according to the semi-structured characteristics of the data in the test data file, performs data preprocessing on the test data file uploaded by the user based on the designed data structure, and establishes an efficient index for the test data file, thereby realizing efficient storage of data; on the second hand, based on the established efficient index of the test data file, when the user subsequently retrieves the test data, the target data can be quickly located and returned, thereby realizing efficient access to the test data; on the third hand, since only the test data file measurement point information index and the record items corresponding to the test data file are cached in the early stage, the cached data volume is small, which can save memory space.
[0059] Combine the following Figures 4 to 7 The data management method provided in the embodiment of the present application is described with a specific example.
[0060] Figure 4 It is a schematic diagram showing the working principle of data storage of the data management system of an embodiment of the present application.
[0061] The data storage process mainly includes: uploading the entire test data file, parsing, and establishing efficient indexes after parsing. The specific process of data storage includes the following steps: S1: The user selects the test data file to be uploaded. The test data file needs to meet the relevant specifications and principles stipulated in the previous period; In this specific example, the test data file is taken as a mechanical test data file for illustration.
[0062] S2: The system uses breakpoint-resume upload mode to upload the test data file to the file system specified by the server; S3: The server extracts the overall information based on the standardized file name, as shown below: As shown in the above formula, AL-1 is the model name, X is the test direction, 01g is the test magnitude representing 0.1g, and 1 is the serial number under this magnitude.
[0063] After completion, a record item is added to the system database. An exemplary structure of the record item is as follows: Figure 5 As shown, Figure 5 Some of the unparsed information in the record items is empty.
[0064] S4: Return the upload success message to the customer.
[0065] S5: The system scheduled task starts (runs once every 5 minutes by default) and obtains the list of newly uploaded test data files.
[0066] Obtaining the newly uploaded test data file list means obtaining each newly added record item.
[0067] S6: Read the test data files in sequence, analyze and record them, and record the measurement point information, starting position, frequency information, etc. in the files.
[0068] The corresponding parsing rules are as follows: Figure 6 This is a schematic diagram of the partial contents of a test data file, as shown in the attached figure. Figure 6 As shown in the figure, the content 2.00000e+1 enclosed by the first rectangular box is the starting frequency, the content 4.00000e+00 enclosed by the second rectangular box is the frequency interval, and the part enclosed by the third rectangular box indicates the amplitude, which is arranged in order from left to right and from top to bottom.
[0069] The frequency will be automatically calculated based on the amplitude.
[0070] Let the amplitude be X[i], then: After reading and parsing in sequence, the key information is written into the data table structure. Figure 7 It is a schematic diagram showing the structure of the record items after the analysis process information is written and the test data file measurement point information index table in an embodiment of the present application.
[0071] Generate a test data file uploaded by the user Figure 7 The index table shown in the figure indicates that the storage process of the test data file is completed.
[0072] By repeatedly adopting the above test data file storage process, each test data file uploaded by the user can be quickly stored.
[0073] In the embodiment of the present application, the management of data includes not only the fast storage of multiple data but also the access to the data.
[0074] Figure 8 It is a schematic diagram showing the working principle of data access by the data management system of an embodiment of the present application.
[0075] like Figure 8 As shown, the process of locating and returning data (i.e., data access) in response to user retrieval includes the following steps: S1: The user selects the model, working condition, and measurement point information to be retrieved.
[0076] That is, the user sets the search information, and the client generates a search request after receiving the search information set by the user, and sends the search request to the server.
[0077] S2: The client sends a request (i.e., a retrieval request) to the server.
[0078] S3: After receiving the request, the server obtains the test data file ID according to the model and working conditions, and obtains the file block information corresponding to the measuring point in combination with the measuring point requirements, and obtains the starting information startPos1 and the starting position startPos2 of the next measuring point.
[0079] S4: Load the file and jump the file header directly to startPos1 (in the specific implementation, it can go back 100Bytes, that is, jump to startPos1-100).
[0080] S5: Parse the file block according to the data type until the starting position of the next measurement point startPos2-1 or the end of the file, and store the relevant data information; S6: The data information is compressed and returned to the user, and the data access process ends.
[0081] The data management method provided in this specific example constructs an efficient data key information storage and retrieval structure and method based on the characteristics and requirements of mechanical test data without adding too much redundant data, thereby achieving efficient management and access to test data and improving the access efficiency of test data.
[0082] Fig. 9 A structural block diagram of a data management system for implementing an embodiment of the present application.
[0083] The data management system provided in the embodiment of the present application includes a client 10 and a server 20: The client 10 includes: The first receiving module 101 is used to receive the test data file uploaded by the user, and send the test data file to the server in a breakpoint resume mode; The server 20 includes: A new adding module 201 is used to add a new record item in the test data file general information table in the database according to the test data file name, and upload the test data file to the file system; The task analysis module 202 is used to start the data analysis task at a fixed time, obtain unprocessed record items and read each unprocessed record item in sequence; for each unprocessed record item, locate the corresponding target test data file from the file system; The adding module 203 is used to parse the target test data file to generate a test data file measurement point information index table and write it into the database, and add the parsing process information obtained by the file parsing to the corresponding unprocessed record item, wherein the test data file measurement point information index table includes: the measurement point information in the test data file, the file starting position, and the frequency interval.
[0084] Optionally, the newly added module includes: An extraction submodule, used to extract overall information from the test data file name, wherein the overall information includes: model name, test direction, test level and serial number under the test level; The record item adding submodule is used to generate a record item based on the overall information and add it to the overall information table of the test data file in the database.
[0085] Optionally, each record item in the test data file overall information table includes the following fields: identification, test file name, status, file type, upload time, file size, storage path, test type, model name, test direction, test magnitude, test rounds and parsing process information.
[0086] Optionally, the test data file measuring point information index table includes the following fields: identification, file name ID, measuring point name, starting point position and frequency interval.
[0087] Optionally, the client further includes: a second receiving module, configured to receive search information set by a user after the adding module parses the target test data file to generate a test data file measuring point information index table and writes it into the database, wherein the search information includes: model name, working condition and measuring point information; A request sending module, used for sending a search request to the server, wherein the search request carries the search information; The server also includes: A response module, used to respond to the search request, query the test data file general information table according to the model name and the working condition, and determine the test data file identifier; A query module, used to query the test data file measuring point information index table managed in the database, and obtain the file block information corresponding to the measuring point information, wherein the file block information includes: the starting information of the measuring point and the starting information of the next measuring point; A loading module, used for loading a target file from the file system according to the file block information; A file parsing module, used to parse the target file using a parsing rule matching the target file type to obtain target test data; A feedback module is used to feed back the target test data to the client.
[0088] In the data management system provided by the embodiment of the present application, a client receives a test data file uploaded by a user, and sends the test data file to a server by using a breakpoint-resume transmission method; the server adds a record item in a test data file general information table in a database according to the test data file name, and uploads the test data file to the file system; the server starts a data parsing task at a fixed time, obtains unprocessed record items, and reads each unprocessed record item in turn; for each unprocessed record item, locates the corresponding target test data file from the file system; parses the target test data file to generate a test data file measurement point information index table, writes it into a database, and adds the parsing process information obtained by parsing the file to the corresponding unprocessed record item. The data management system provided in the embodiment of the present application, on the one hand, designs a test data record item position index and a key information data structure according to the semi-structured characteristics of the data in the test data file, performs data preprocessing on the test data file uploaded by the user based on the designed data structure, and establishes an efficient index for the test data file, thereby realizing efficient storage of data; on the second hand, based on the established efficient index of the test data file, when the user subsequently retrieves the test data, the target data can be quickly located and returned, thereby realizing efficient access to the test data; on the third hand, since only the test data file measurement point information index and the record items corresponding to the test data file are cached in the early stage, the cached data volume is small, which can save memory space.
[0089] The embodiments of the present application provide Fig. 9 The data management system shown enables Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0090] Optionally, an embodiment of the present application also provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the processes executed by the above-mentioned client or server are implemented and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0091] It should be noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or apparatus.
[0092] Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0093] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A data management method, It is characterized in that The method comprises: The client receives the test data file uploaded by the user, and sends the test data file to the server in a breakpoint-resume manner; The server adds a new record item in the test data file general information table in the database according to the test data file name, and uploads the test data file to the file system; The server starts the data parsing task regularly, obtains unprocessed record items and reads each unprocessed record item in sequence; For each of the unprocessed record items, locate the corresponding target test data file from the file system; The target test data file is parsed to generate a test data file measurement point information index table which is written into the database, and the parsing process information obtained by the file parsing is added to the corresponding unprocessed record item, wherein the test data file measurement point information index table includes: measurement point information in the test data file, file starting position, and frequency interval.
2. The method according to claim 1, It is characterized in that The step of adding a new record item in the test data file general information table in the database according to the test data file name by the server includes: The server extracts general information from the test data file name, wherein the general information includes: model name, test direction, test level and serial number under the test level; A record item is generated based on the overall information and is added to the overall information table of the test data file in the database.
3. The method according to claim 1, Features: Each record item in the test data file overall information table includes the following fields: identification, test file name, status, file type, upload time, file size, storage path, test type, model name, test direction, test magnitude, test rounds and analysis process information.
4. The method according to claim 1, Features: The test data file measuring point information index table includes the following fields: identification, file name ID, measuring point name, starting point position and frequency interval.
5. The method according to claim 1, It is characterized in that After the step of parsing the target test data file to generate a test data file measuring point information index table and writing it into the database, the method further includes: The client receives search information set by the user, wherein the search information includes: model name, working condition and measurement point information; The client sends a search request to the server, wherein the search request carries the search information; The server responds to the search request, searches the test data file general information table according to the model name and the working condition, and determines the test data file identifier; Querying the test data file measuring point information index table managed in the database to obtain file block information corresponding to the measuring point information, wherein the file block information includes: starting information of the measuring point and starting information of the next measuring point; Loading a target file from the file system according to the file block information; Parsing the target file using a parsing rule that matches the target file type to obtain target test data; The target test data is fed back to the client.
6. A data management system, It is characterized in that The system includes a client and a server: The client comprises: The first receiving module is used to receive the test data file uploaded by the user, and send the test data file to the server in a breakpoint resume mode; The server comprises: A new adding module, used for adding a new record item in the test data file general information table in the database according to the test data file name, and uploading the test data file to the file system; The task analysis module is used to start the data analysis task at a fixed time, obtain unprocessed record items and read each unprocessed record item in sequence; for each unprocessed record item, locate the corresponding target test data file from the file system; An adding module is used to parse the target test data file to generate a test data file measurement point information index table and write it into the database, and add the parsing process information obtained by file parsing to the corresponding unprocessed record item, wherein the test data file measurement point information index table includes: measurement point information in the test data file, file starting position, and frequency interval.
7. The system according to claim 6, It is characterized in that The newly added modules include: An extraction submodule, used to extract overall information from the test data file name, wherein the overall information includes: model name, test direction, test level and serial number under the test level; The record item adding submodule is used to generate a record item based on the overall information and add it to the overall information table of the test data file in the database.
8. The system according to claim 6, Features: Each record item in the test data file overall information table includes the following fields: identification, test file name, status, file type, upload time, file size, storage path, test type, model name, test direction, test magnitude, test rounds and analysis process information.
9. The system according to claim 6, Features: The test data file measuring point information index table includes the following fields: identification, file name ID, measuring point name, starting point position and frequency interval.
10. The system according to claim 6, Features: The client also includes: A second receiving module is used to receive search information set by a user after the adding module parses the target test data file to generate a test data file measuring point information index table and writes it into the database, wherein the search information includes: model name, working condition and measuring point information; A request sending module, used for sending a search request to the server, wherein the search request carries the search information; The server also includes: A response module, used to respond to the search request, query the test data file general information table according to the model name and the working condition, and determine the test data file identifier; A query module, used to query the test data file measuring point information index table managed in the database, and obtain the file block information corresponding to the measuring point information, wherein the file block information includes: the starting information of the measuring point and the starting information of the next measuring point; A loading module, used for loading a target file from the file system according to the file block information; A file parsing module, used to parse the target file using a parsing rule matching the target file type to obtain target test data; A feedback module is used to feed back the target test data to the client.
Citation Information
Patent Citations
Test data storage system and method
CN103440282A
System and method for remotely collecting, retrieving and displaying application system logs
CN103914485A
A variable frequency WAMS real-time database management method and system
CN109299108A
File management method and device, electronic equipment and storage medium
CN113542418A
Test data management system and method based on big data and electronic equipment
CN116561098A
